FlutterQRScanner-App icon indicating copy to clipboard operation
FlutterQRScanner-App copied to clipboard

Gradle task assembleDebug failed with exit code 1

Open JeanBarreiro opened this issue 6 years ago • 3 comments

Launching lib\main.dart on Android SDK built for x86 in debug mode... FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':app:preDebugBuild'.

Android dependency 'com.android.support:support-v4' has different version for the compile (27.1.1) and runtime (28.0.0) classpath. You should manually set the same version via DependencyResolution

  • 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 5s

The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app. See https://goo.gl/CP92wY for more information on the problem and how to fix it.


Gradle task assembleDebug failed with exit code 1 Exited (sigterm)

JeanBarreiro avatar Mar 18 '19 15:03 JeanBarreiro

Hi...anybody able to fix this?. Should use androidx?

yusoffomargit avatar Apr 01 '19 04:04 yusoffomargit

Same here, does anyone know how to fix the problem? Thanks.

ivanfwc avatar Apr 11 '19 14:04 ivanfwc

Hi, I could fix it (using androidx) i followed these instructions

hope it help you

cesarazocar avatar May 04 '19 21:05 cesarazocar