我正在构建应用程序是Flutter,并且我没有使用AndroidX。 运行正常,我将Flutter升级到1.4.9。现在我遇到错误了,
这是我的日志
APPLEs-Air:tripmate abbasi$ flutter run
Warning! The 'flutter' tool you are currently running is from a different Flutter repository than the one last used by this package.
The repository from which the 'flutter' tool is currently executing will be used instead.
running Flutter tool: /Users/apple/desktop/dev/flutter
previous reference : /Users/apple/Desktop/flutter
This can happen when you have multiple copies of flutter installed. Please check your system path to verify that you are running the
expected version (run 'flutter --version' to see which flutter is on your path).
Running "flutter packages get" in tripmate... 40.1s
Launching lib/main.dart on SM J327P in debug mode...
Initializing gradle... 8.7s
Resolving dependencies... 31.8s
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Note: /Users/apple/desktop/dev/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.7.4/android/src/main/java/io/flutter/plugins/firebase/cloudfirestore/CloudFirestorePlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /Users/apple/desktop/dev/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity-0.4.2/android/src/main/java/io/flutter/plugins/connectivity/ConnectivityPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/apple/desktop/dev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_analytics-2.1.1+1/android/src/main/java/io/flutter/plugins/firebaseanalytics/FirebaseAnalyticsPlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /Users/apple/desktop/dev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.7.0/android/src/main/java/io/flutter/plugins/firebaseauth/FirebaseAuthPlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /Users/apple/desktop/dev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.2.5+1/android/src/main/java/io/flutter/plugins/firebase/core/FirebaseCorePlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Running Gradle task 'assembleDebug'...
Note: /Users/apple/Desktop/tripmate/tripmate/android/app/src/main/java/com/example/tripmate/InfoWindowSymbolLayerActivity.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.
> com.android.build.api.transform.TransformException: Error while generating the main dex list.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2m 40s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 162.4s (!)
Gradle task assembleDebug failed with exit code 1
有人可以帮我吗? 我需要解决此问题,因为某些软件包不支持AndroidX,所以无法升级到AndroidX