添加 flutter 后启动时应用程序崩溃 firebase_admob
App Crash when Launch after adding flutter firebase_admob
我只是将新的依赖项添加到 pubspec.yaml
,它是 firebase_admob: ^0.8.0+3
,但是在添加它之后我在启动时遇到了应用程序崩溃。
这是我的其他依赖项,有什么解决办法吗?
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.2
shared_preferences: ^0.5.1+1
rxdart: ^0.20.0
font_awesome_flutter: ^8.2.0
geolocator: '^3.0.0'
localstorage: ^1.2.0
crypto: ^2.0.6
dio: ^2.0.0
pigment: ^1.0.3
validate: ^1.6.0
hijri: ^0.2.5
device_id: ^0.1.3
vibrate: ^0.0.4
date_format: ^1.0.5
cron: ^0.2.1
audioplayers: ^0.9.0
google_fonts_arabic: ^1.1.7
unicode: ^0.1.0
flutter_html: ^0.8.2
flutter_compass: ^0.1.0
google_sign_in: ^4.0.1+1
http: ^0.11.3+16
easy_alert: ^0.0.2
google_maps_flutter: ^0.2.0
app_settings: ^1.0.5
flutter_local_notifications: ^0.5.0
cached_network_image: ^0.6.0
firebase_admob: ^0.8.0+3
flutter_facebook_login:
git:
url: https://github.com/roughike/flutter_facebook_login
ref: e69fef3
firebase_auth: ^0.8.2
esys_flutter_share: ^0.0.9
dev_dependencies:
flutter_test:
sdk: flutter
我需要查看错误消息,但可能是关于 Android X 的。降低包版本或将您的项目迁移到 android x。
Another related question
我只是将新的依赖项添加到 pubspec.yaml
,它是 firebase_admob: ^0.8.0+3
,但是在添加它之后我在启动时遇到了应用程序崩溃。
这是我的其他依赖项,有什么解决办法吗?
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.2
shared_preferences: ^0.5.1+1
rxdart: ^0.20.0
font_awesome_flutter: ^8.2.0
geolocator: '^3.0.0'
localstorage: ^1.2.0
crypto: ^2.0.6
dio: ^2.0.0
pigment: ^1.0.3
validate: ^1.6.0
hijri: ^0.2.5
device_id: ^0.1.3
vibrate: ^0.0.4
date_format: ^1.0.5
cron: ^0.2.1
audioplayers: ^0.9.0
google_fonts_arabic: ^1.1.7
unicode: ^0.1.0
flutter_html: ^0.8.2
flutter_compass: ^0.1.0
google_sign_in: ^4.0.1+1
http: ^0.11.3+16
easy_alert: ^0.0.2
google_maps_flutter: ^0.2.0
app_settings: ^1.0.5
flutter_local_notifications: ^0.5.0
cached_network_image: ^0.6.0
firebase_admob: ^0.8.0+3
flutter_facebook_login:
git:
url: https://github.com/roughike/flutter_facebook_login
ref: e69fef3
firebase_auth: ^0.8.2
esys_flutter_share: ^0.0.9
dev_dependencies:
flutter_test:
sdk: flutter
我需要查看错误消息,但可能是关于 Android X 的。降低包版本或将您的项目迁移到 android x。
Another related question