我有一个使用Flutter构建的Android应用。我以前遇到此错误
[Dependency failing: com.nimbusds:nimbus-jose-jwt:7.7 -> net.minidev:json-smart@[1.3.1,2.3]][1]
我为此申请了this workaround:
// Bottom of android/app/build.gradle
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
这似乎不是理想的解决方法,但至少绕过了错误。
该项目已根据instructions迁移到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
如何解决启动崩溃?
答案 0 :(得分:0)
先尝试flutter clean
,然后再尝试flutter run
。大多数情况下可以解决此问题。
希望将其添加为评论