facundomedica / fast_qr_reader_view

A Fast QR Reader widget for Flutter. For both Android and iOS
MIT License
295 stars 163 forks source link

Error building APK on Android #26

Closed IrosTheBeggar closed 2 years ago

IrosTheBeggar commented 5 years ago

I got this error on Android after installing this plugin

         *********************************************************
WARNING: This version of path_provider 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:preReleaseBuild'.
> Android dependency 'android.arch.lifecycle:runtime' has different version for the compile (1.0.0) and runtime (1.1.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. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 0s
James-A-White commented 5 years ago

Have you fully upgraded your project to AndroidX? This is the error I was getting before migrating my project to AndroidX. If you remove the dependency to fast_qr_reader_view, does the problem go away?

I finally got it working in my environment following these steps.

Good luck!