-
Notifications
You must be signed in to change notification settings - Fork 936
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
APK Build fails with Flutter 1.7.0 or even v.1.5+ #438
Comments
Did you try going through the details listed on AndroidX incompatibilities? https://goo.gl/CP92wY If that's not the issue, could you try printing the stacktrace? |
Hi @muffinjello Ok, the core issue came down to 2 plugins(and esp. these versions) which I was using ... flutter_webview_plugin: ^0.3.5 so, if I just use the flutter_webview_plugin: ^0.3.5, I get the below errors and the APK build fails ..
if I use just the flutter_webview_plugin: ^0.3.5 . ... It complies with below warning BUT does successfully build the APK
If I just use google_maps_flutter: ^0.5.16, I get the below warnings BUT it does end up building APK
I even tried to use webview_flutter: ^0.3.9+1 it builds the APK with below warnings .. Initializing gradle... 0.7s ...BUT... if I have 2 plugins i.e. google_maps_flutter: ^0.5.16 and webview_flutter: ^0.3.9+1, I again get the same BIG FAT error about DEX archives(see below) and the build fails.
So, in a nutshell the google_maps_flutter ^0.5.16 conflicts with any of the other 2 plugins (an may be a few others which I don't use). Hope this clarifies things |
I have the same issue. Flutter: 1.5.4-hotfix.2
|
Did you change your dependencies to AndroidX ones? |
@charafau FYI...The AndroidX dependency errors in Flutter are misleading as in my case I even tried to open the project in Android Studio and selected auto migrate to AndroidX, it came back saying no AndroidX dependencies found. |
Finaly fixed it by |
Im trying the command and doesnt work flutter config --no-enable-build-plugin-as-aar
|
I have the same issue. |
I am also stuck with this. Debug builds work, release builds don't work. |
see below ...
The text was updated successfully, but these errors were encountered: