You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently I updated flutter package and after that i cant build my app.
`D8: Program type already present: android.support.v4.media.MediaBrowserCompat$CallbackHandler
*********************************************************
WARNING: This version of image_picker will break your Android build if it or its dependencies aren't compatible with AndroidX.
See https://goo.gl/CP92wY for more information on the problem and how to fix it.
This warning prints for all Android build failures. The real root cause of the error may be unrelated.
*********************************************************
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
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.
BUILD FAILED in 18s
Finished with error: Gradle task assembleDebug failed with exit code 1
`
Flutter Doctor
[√] Flutter (Channel stable, v1.0.0, on Microsoft Windows [Version 10.0.17763.107], locale en-US) • Flutter version 1.0.0 at E:\flutter • Framework revision 5391447fae (3 months ago), 2018-11-29 19:41:26 -0800 • Engine revision 7375a0f414 • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)
The text was updated successfully, but these errors were encountered:
ditheshthegreat
changed the title
Error while building on android device
Error while building on android device : Saying -this dependencies aren't compatible with AndroidX.
Feb 22, 2019
This doesn’t look like an actually issue with this plugin.
By your stack trace either you have an incompatibility in your app with android X or look like somehow one of the plugins you’re using has a duplicated flutter.jar library in its build.gradle which usually results in that exception.
I suggest you a flutter clean followed by a flutter build apk to find what’s happening and it the error still persists remove the picker plugin and try to rebuild it again to find where it’s coming from.
Recently I updated flutter package and after that i cant build my app.
`D8: Program type already present: android.support.v4.media.MediaBrowserCompat$CallbackHandler
*********************************************************
WARNING: This version of image_picker will break your Android build if it or its dependencies aren't compatible with AndroidX.
See https://goo.gl/CP92wY for more information on the problem and how to fix it.
This warning prints for all Android build failures. The real root cause of the error may be unrelated.
*********************************************************
FAILURE: Build failed with an exception.
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
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 18s
Finished with error: Gradle task assembleDebug failed with exit code 1
`
Flutter Doctor
[√] Flutter (Channel stable, v1.0.0, on Microsoft Windows [Version 10.0.17763.107], locale en-US) • Flutter version 1.0.0 at E:\flutter • Framework revision 5391447fae (3 months ago), 2018-11-29 19:41:26 -0800 • Engine revision 7375a0f414 • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)
The text was updated successfully, but these errors were encountered: