Приложение Flutter падает после установки - PullRequest
0 голосов
/ 09 апреля 2020

Я получаю эту ошибку ... Невозможно решить эту проблему. Пожалуйста, помогите приложению просто разбиться после установки.

Что я пробовал:

  1. Добавлен Google-services.plist из xcode
  2. Добавить / удалить FirebaseApp.configure () в AppDelegate.swift
  3. Добавлен GMSServices.provideAPIKey ()
flutter: getCurrentLocation
flutter: {app_name: , default_tax: null, default_currency: null, currency_right: false, enable_paypal: true, enable_stripe: true, mobile_language: en}
flutter: getCurrentLocation
*** First throw call stack:
(
    0   CoreFoundation                      0x00007fff23c7127e __exceptionPreprocess + 350
    1   libobjc.A.dylib                     0x00007fff513fbb20 objc_exception_throw + 48
    2   CoreFoundation                      0x00007fff23c710bc +[NSException raise:format:] + 188
    3   location                            0x000000010aeee80c -[LocationPlugin requestPermission] + 460
    4   location                            0x000000010aeeddf9 -[LocationPlugin handleMethodCall:result:] + 2137
    5   Flutter                             0x0000000108bd6f32 __45-[FlutterMethodChannel setMethodCallHandler:]_block_invoke + 104
    6   Flutter                             0x0000000108b65a4e _ZNK7flutter21PlatformMessageRouter21HandlePlatformMess<…>
Lost connection to device.```



I'm using this source code ( https://codecanyon.net/item/multi-restaurants-flutter-php-laravel-admin-panel/24878940 )

1 Ответ

0 голосов
/ 09 апреля 2020

Шаг 2 и 3 можно пропустить,

Пожалуйста, зарегистрируйте идентификатор приложения в firebase. Скопируйте Google-Services.plist в ios / Runner и перетащите в xcode для файла регистрации.

И запустите flutter clean в терминале для сброса четкой сборки.

...