我有一个使用Flutter构建的Android应用程序。之前我遇到过这个错误
[Dependency failing: com.nimbusds:nimbus-jose-jwt:7.7 -> net.minidev:json-smart@[1.3.1,2.3]][1]
我使用了这个解决方法:
// Bottom of android/app/build.gradle
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
这似乎并不是一个理想的解决方法,但至少可以绕过该错误。
根据说明,该项目已迁移到AndroidX。
然而,在调试时,启动屏幕会打开,但应用程序立即崩溃。唯一的控制台错误是:
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Built build/app/outputs/apk/debug/app-debug.apk.
[✓] Flutter (Channel stable, v1.7.8+hotfix.4, on Mac OS X 10.14.4 18E226, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 10.3)
[✓] iOS tools - develop for iOS devices
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.37.1)
[✓] Connected device (1 available)
pubspec.yaml 包:
cloud_firestore: ^0.12.9+2
dio: ^2.1.16
firebase_auth: ^0.14.0+5
firebase_core: ^0.4.0+9
firebase_messaging: ^5.1.4
firebase_storage: ^3.0.6
flutter_facebook_login: ^2.0.1
flutter_local_notifications: ^0.8.2
flutter_webview_plugin: ^0.3.7
google_maps_flutter: ^0.5.21
google_maps_webservice: ^0.0.14
google_places_picker: ^2.0.2+1
google_sign_in: ^4.0.7
geoflutterfire: ^2.0.3+5
page_transition: ^1.1.4
stripe_payment: ^0.2.1
如何修复启动崩溃?