-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build failure after upgrading to cloud_firestore 0.3.x #15972
Comments
I think you need to switch to the |
The latest version of cloud_firestore depends on very recent changes to both Flutter and the Engine. You should be able to run |
Thanks guys, that would make a tonne of sense. I'm going to hold off upgrading for now and stick to safer waters. Thank you again. |
I have the same problem, unfortunately nothing mentioned above helped me. image_picker: 0.1.1
google_sign_in: 0.3.1
firebase_analytics: 0.0.4
firebase_auth: 0.2.0
firebase_database: 0.0.12
firebase_storage: 0.0.5
cloud_firestore: 0.3.2 When I change to master channel, I get
Changing the cloud_firestore to 0.3.0 will raise another dex exception I am just starting with Flutter. Do I need to allow multidex in Android, or will flutter solve this? |
+1 ( Anyone found the solution ?, Also changing channel didnt work for me) |
please provide at least the output of |
No issue found @zoechi
|
hey @iampawan, have you found a solution for this? I'm also stuck with the :app:transformDexArchiveWithExternalLibsDexMergerForDebug problem. love your videos, man! thanks for putting them out! |
similar to #14874 |
I have the same issue. Tried downgrading but I get the same on 0.7.1 and 0.7.2 flutter doctor -v
|
It works fine on ios |
Every time I run a But this time, I switched from $ flutter doctor -v
[✓] Flutter (Channel master, v0.5.9-pre.24, on Mac OS X 10.13.4 17E199, locale en-US)
• Flutter version 0.5.9-pre.24 at /Users/lewig047/tools/flutter
• Framework revision e69b434602 (7 hours ago), 2018-08-13 10:35:59 +0200
• Engine revision e54bc4ea18
• Dart version 2.0.0-dev.69.5.flutter-eab492385c
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /Users/lewig047/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 9.4)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.4, Build version 9F1027a
• ios-deploy 1.9.2
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 27.1.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] VS Code (version 1.23.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 2.12.2
[✓] Connected devices (2 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)
• iPhone X • D253C7DC-FA97-4A56-8B52-0A5A24CC38AB • ios • iOS 11.4 (simulator)
• No issues found! $ flutter run -d Android
Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Initializing gradle... 0.9s
Resolving dependencies... 1.1s
Running 'gradlew assembleDebug'...
Configuration 'compile' in project ':app' is deprecated. Use 'implementation' instead.
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
Note: /Users/lewig047/.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/lewig047/.pub-cache/hosted/pub.dartlang.org/flutter_webview_plugin-0.1.6/android/src/main/java/com/flutter_webview_plugin/WebviewManager.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/lewig047/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.5.18/android/src/main/java/io/flutter/plugins/firebaseauth/FirebaseAuthPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/lewig047/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.5.18/android/src/main/java/io/flutter/plugins/firebaseauth/FirebaseAuthPlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /Users/lewig047/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.2.5/android/src/main/java/io/flutter/plugins/firebase/core/FirebaseCorePlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /Users/lewig047/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-1.0.4/android/src/main/java/io/flutter/plugins/firebasemessaging/FlutterFirebaseInstanceIDService.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:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 28s
29.0s
Gradle build failed: 1 |
I am receiving a similar error, it happens on all flutter branch releases versions.
Flutter Doctor:
Dependencies:
|
after the release of Beta 0.6, and using changing minSdkVersion to 21 according to this comment, it is working in my app. |
I am receiving a similar error, it happens on all flutter branch releases versions. I am stuck anyone having the solution?
|
@gmlewis You got any solution for this? |
No, not really. It eventually cleared up and I'm now back up and running again. Sorry. |
Thanks for the quick response. I am stuck actually so I asked you. anyway I have to wait for the reply from the contributor of flutter team |
@zoechi Sorry to bother you but You found any concrete solution for this issue? I am stuck with this. |
New versions of several plugins were released last week. Ensure you have the latest versions. |
Yes I have all the latest plugins see following are they
|
I'd try deleting |
@zoechi I got the solution. But Now new Issue occurred that the app is not working in Android API 18 |
If you are seeing the In
In
That solved the |
@gmlewis Thanks for the answer. But I already put this code and still not able to run the app in Android 18. Also, I am again getting the following error. Is there any solution then please let me know. I stuck in this from past one week. |
sounds like a type mismatch. If that data came from JSON, then you need to build up a new map from the original data. But this would be a completely separate issue from the subject line above and I recommend that you move that question out of this issue and ask for help on the Dart or Flutter Slack channels where there are a lot of helpful people hanging out for questions like this. |
@gmlewis I think this is the correct place for this issue and as you see there is an error with |
@isoos please confirm if this issue still appears with latest Flutter & |
0.3.0 (the version which had the issue at the time of reporting) seems to be fine with the latest Flutter: |
It still happens for us.
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3) [✓] iOS toolchain - develop for iOS devices (Xcode 10.1) [✓] Android Studio (version 3.3) [✓] VS Code (version 1.33.1) [✓] Connected device (1 available) • No issues found! pubspec.yaml
|
This issue has been moved to firebase/flutterfire#1244. Any further collaboration will be done there. |
am going to crazy. i stack on this problem the last 2 weeks please help me |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
From @ITJammish on March 25, 2018 15:8
URL: https://pub.dartlang.org/packages/cloud_firestore#-readme-tab-
Hi, after upgrading to use the cloud firestore plugin 0.3.0 (and later) from 0.2.12. I have the following stacktrace on build:
Flutter Doctor
Copied from original issue: dart-lang/pub-dev#1146
The text was updated successfully, but these errors were encountered: