Flutter: ошибка при генерации основного списка dex - PullRequest
2 голосов
/ 13 апреля 2019

Я создаю приложение 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

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...