facundomedica / fast_qr_reader_view

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

Unable to compile this plugin with AndroidX. #24

Open pneves001 opened 5 years ago

pneves001 commented 5 years ago

/flutter/.pub-cache/hosted/pub.dartlang.org/fast_qr_reader_view-0.1.5/android/src/main/java/co/apperto/fastqrreaderview/java/VisionProcessorBase.java:18: error: package android.support.annotation does not exist import android.support.annotation.NonNull;

paldrian commented 5 years ago

+1

James-A-White commented 5 years ago

I was getting these errors as well and I think the issue was how I modified the build.gradle files. I'd suggest removing the dependency to fast_qr_reader_view and get your project to compile and run on an Android device, then follow these steps very carefully. This got it working for me.