-
Notifications
You must be signed in to change notification settings - Fork 3.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
Execution failed for task ':app:mergeDexDebug'. #2414
Comments
Hi @BenedictQ
Thank you |
Hi @TahaTesser thank you very much that did seem to be the problem! I'm not an android developer, so it was very hard to see what was going wrong in such a big stack trace...! Just applying step 1 from the link you sent seems to have fixed the issue, and the app now runs on my phone. https://stackoverflow.com/questions/49886597/multidex-issue-with-flutter#answer-54680454 suggests also enabling Jetifier - do you know if this is necessary, and why they might suggest this if not? However, I still have an error coming up in the debug console on VSCode, even though the app installs and runs correctly. It's complaining about not having firebase_core_web and cloud_firestore_web even though I'm running a mobile project:
Any idea why this is? Finally, the multidex issue seems to have occurred due to having too many methods. I'm installing firebase into a very basic app, so I assume the majority of the methods causing this issue are in the firebase SDKs themselves. It seems likely this is an issue that might affect other people as well therefore - perhaps it's worth mentioning somewhere in the firebase documentation if it's not already? Thanks 😀 |
Hi @BenedictQ Yes , Multidex is often required when you exceed method count. |
Thanks @TahaTesser I think that's all good now 😄 |
This is still present, mutlidex is enabled Plugin project :firebase_core_web not found. Please update settings.gradle. |
This Issue is related to multidex and there is no confirmation from @BenedictQ |
This issue still persists, both apk-release and apk-debug. Debugging via cable gives no trouble though. Things already tried:
It always gives the same error as @erabti: Anyone have any idea?? |
Yeah, the code above worked. Turns out that I'm slow. |
Could everyone who still has this problem please file a new issue with the exact description of what happens, logs and the output of |
I'm having a problem when trying to run an Android app linked to Firebase on Flutter. The app will install fine on iOS, but the gradle build fails for installing onto Android. I've run
flutter pub get
from the root directory of my Flutter project. In VSCode when I try to run a debug build on a real device (Samsung S9) I get the output:Output from
flutter doctor -v
:Output from
flutter run --verbose
:logs
My pubspec.yaml:
The text was updated successfully, but these errors were encountered: