A minimal complete reproducible code sample for flutter/flutter#64996
I am using local_auth to sign in with fingerprint and encounter some problem with Android. When I run in debug mode, it works fine. However, if I build it in app-bundle/apk in release mode --release
, the app crashing before the popup to ask for fingerprint.
Try to flutter build apk
and flutter install
on an Android device, you'll encounter the crash after the apps loaded.
Update android gradle plugin.
- When I opened this project in Android studio, I saw this
Plugin Update Recommended
popup.
- After I updated the plugin, this is the changes; (
android/build.gradle
).
- Encounter the issue.
Change back to classpath 'com.android.tools.build:gradle:3.5.0'
in android/build.gradle
. Do not update the plugin.