-
-
Notifications
You must be signed in to change notification settings - Fork 549
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App Don't Run in android #371
Comments
Adding the following line in the
|
Got the same problem, recently the error occured when running Running on Mac os 15.1.1 (24B91) and Flutter Version below
My solutions :
Find the flutter_barcode_scanner Folder in ~/.pub-cache The packages downloaded by Flutter are usually stored in the pub-cache folder in your home directory. You can find it at the following path:
Inside this folder, you'll find the directory containing the source code of the package, including the build.gradle Android file. Navigate to the Android Folder If you need to add or change the namespace configuration, navigate to the android/ folder inside the flutter_barcode_scanner package directory. The folder structure usually looks like this:
In the android/ folder, you will find the build.gradle file that you need to modify (add namespace "com.amolg.flutterbarcodescanner" inside the android block). this is the build.gradle flutter_barcode_scanner version 2.0.0
|
Add flutter_barcode_scanner: ^2.0.0 to pubspec.yaml
Run the app
this log appears: "FAILURE: Build failed with an exception.
A problem occurred configuring project ':flutter_barcode_scanner'.
BUILD FAILED in 1s
Error: Gradle task assembleDebug failed with exit code 1"
The text was updated successfully, but these errors were encountered: