How to Fix Release APK Is Not Working Properly?

· 2 min read
How to Fix Release APK Is Not Working Properly
How to Fix Release APK Is Not Working Properly

Flutter provides a hot reload feature that helps to improve its performance loading only required widgets rather than loading an entire screen. So it will ultimately reduce the app loading time. So in this article, we will go through How to fix if release APK is not working properly.

How to Fix Release APK Is Not Working Properly?

Users can give a try to below code snippet.

flutter clean

and run the below command in the terminal.

flutter build apk --release

Open the file “android/app/src/main/AndroidManifest.xml” and add the proper user-permission:

 <uses-permission android:name="android.permission.INTERNET"/>
  • Make  change in android project
    sdk.dir=D:/SDK               //your android SDK location
    flutter.sdk=D:\\Flutter\\flutter  //your flutter SDK location
  • Changes in your android/app/build.gradle file
    buildTypes {
           release {
               // if everything ok then not add 
               //minifyEnabled true 
               //another you can remove minifyEnabled true
               proguardFiles getDefaultProguardFile('proguard- 
                android.txt'), ''
               signingConfig signingConfigs.release
  • You can also change in android/app/build.gradle defaultConfig method body.
    multiDexEnabled true
  • If you want to migrate to androidx then do it setup.
    dependencies {
     Implementation 'junit:junit:4.12' androidTest
     Implementation 'androidx.test:runner:1.1.1' androidTest
     Implementation 'androidx.test.espresso:espresso-core:3.1.1'
     implementation 'androidx.multidex:multidex:2.0.1'
  • and clean before creating a build folder by following this cmd.
    - flutter clean
    - flutter build apk --release
    - flutter install
  • Go to Release Apk location
    cd build\app\outputs\apk\release


In this article, We have been through How to Fix Release APK is not working properly.

Thanks for being with us on a Flutter Journey !!!
Keep Learning !!! Keep Fluttering !!!

Still, need support for Flutter Development? Do Let us know. is our portal Platform dedicated to Flutter Technology and Flutter Developers. The portal is full of cool resources from Flutter like Flutter Widget GuideFlutter ProjectsCode libs and etc.

Leave a Reply