APK crash after 3.24.2 Flutter Update

Best Practices

For anyone having APK crash issues after the update, this is probably due to ProGuard related issues. To disable ProGuard, find your build.gradle document which would be residing in the same place as your proguard-rules.pro document (appdata>roaming>flutterflow>flutterflow>projectname>android>app), and add minifyEnabled false, and shrinkResources false in buildTypes, example:

    buildTypes {
        release {
        // Temporarily disable ProGuard to check if it's causing the issue
        minifyEnabled false
        shrinkResources false
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        // Use debug signing config for now; replace with release config when ready
        signingConfig signingConfigs.debug
}
    }

I confirm this worked for me and the downside of disabling proguard is a larger file size and easier to disassemble (reverse-engineer) code.

9
14 replies