-
Notifications
You must be signed in to change notification settings - Fork 92
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
Android app just crashes on startup just by adding the plugin to pubspec.yaml #61
Comments
Yes, it is working for me. |
@daadu is there any other permission than android.permission.CAMERA needed for this plugin to work? |
This one was my commit. So just to clarify, before my commit the plugin was crashing on startup, but after if you are able to launch, just cannot scan? Unsure what the issue is, but some questions: |
Actually, so the camera preview shows up, but crashes as soon as it finds a QR code it crashes. Same code works fine on iOS. I'm don't know if the app uses FlutterFragmentActivity, I'm using a basic startup project, with no additional changes than added qrcode_reader@a34c10c to the pubspec.yaml I'm not using Android Studio, just running it from VScode. Do not have Logcat enabled. This is my full debug AndroidManifest.xml:
|
hi @peterlauri i had the same error. |
Might the comment #61 (comment) be a valid solution? @aegislp submit a PR? |
Same issue for me. Just adding it to my app in pubspec.yaml crashes the app on Android simulator immediately after boot. iOS simulator has no issues. |
@aegislp can you please push this fix? |
@peterlauri or maybe you can do the fix and push it? I'm reliant on this package, would be greatly appreciated. |
Dit you get the pubspec.yaml to get the plugin as: qrcode_reader: I can not publish to pub.dev unfortunately. |
Had the same issue, adding the .git package worked for me. 4 days trying to solve this crap! Thanks for the fix. |
Just by simply adding the package the Android version crashes on startup. iOS works perfectly in debug and released version. We are not refering to the qrcode_reader anywhere in our code. We have android.permission.CAMERA in uses.permissions. Removing the package from pubspec.yaml gets the app going on Android again.
Flutter doctor.
The text was updated successfully, but these errors were encountered: