Android app just crashes on startup just by adding the plugin to pubspec.yaml
See original GitHub issueJust 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.
dependencies:
flutter:
sdk: flutter
http: ^0.12.0
shared_preferences: ^0.5.6
qrcode_reader:
git:
url: git://github.com/bcko/flutter_qrcode_reader.git
ref: f47a459
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.2
dev_dependencies:
flutter_test:
sdk: flutter
Flutter doctor.
➜ flutter_poc git:(impersonate-with-qrcode) ✗ flutter doctor -v
[✓] Flutter (Channel beta, v1.13.6, on Mac OS X 10.15.2 19C57, locale en-GB)
• Flutter version 1.13.6 at /Users/plauri/.applications/flutter
• Framework revision 659dc8129d (3 weeks ago), 2019-12-30 09:24:47 -0800
• Engine revision bdc9708d23
• Dart version 2.8.0 (build 2.8.0-dev.0.0 c547f5d933)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /Users/plauri/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.3, Build version 11C29
• CocoaPods version 1.8.4
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[!] Android Studio (version 3.2)
• Android Studio at /Applications/Android Studio.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[✓] VS Code (version 1.41.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.7.1
[✓] Connected device (3 available)
• PRA LX1 • 8NH7N17B04000425 • android-arm64 • Android 8.0.0 (API 26)
• Chrome • chrome • web-javascript • Google Chrome 79.0.3945.130
• Web Server • web-server • web-javascript • Flutter Tools
! Doctor found issues in 1 category.
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (2 by maintainers)
Top Results From Across the Web
Flutter android app crashes upon startup if I ... - Stack Overflow
Use a lower version of the same package ( cached_network_image in my case) in pubspec.yaml . If app still crashes, run flutter upgrade...
Read more >Android app just crashes on startup just by adding the plugin to ...
Android app just crashes on startup just by adding the plugin to pubspec.yaml ... Just by simply adding the package the Android version...
Read more >Flutter android app crashes upon startup if I include a ... - iTecNote
A problem has suddenly recently arisen such that simply by including the dependency in 'location' in pubspec.yaml like e.g.
Read more >Crashes - Android Developers
An app that is written using machine code or C++ crashes if there's an unhandled signal, such as SIGSEGV , during its execution....
Read more >flutter_native_splash | Flutter Package - Pub.dev
I see a white screen between splash screen and app # · It may be caused by an iOS splash caching bug, which...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Dit you get the pubspec.yaml to get the plugin as:
qrcode_reader: git: https://github.com/bcko/flutter_qrcode_reader.git
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.