After updating the plug-in to version 1.0.0 and integrating the location plug-in into my flutter application, I had some problems to compile the application on Android, it crashed every time I tried to compile. After a week of searching and mixing some of the answers I found, this was the one that finally worked:
Please add this modifications to the instalation guide:
Edit your project-level build.gradle file to look like this:
After updating the plug-in to version 1.0.0 and integrating the location plug-in into my flutter application, I had some problems to compile the application on Android, it crashed every time I tried to compile. After a week of searching and mixing some of the answers I found, this was the one that finally worked:
Please add this modifications to the instalation guide:
Edit your project-level build.gradle file to look like this:
Edit your app-level build.gradle file to look like this:
IMPORTANT: The Kotlin plugin (kotlin-android) must be below the android plugin (com.android.application)
Now you can depend on the barcode_scan plugin in your pubspec.yaml file: dependencies: