How to Build App Compliant With Google Play 64-bit In Flutter ?

· 3 min read
How to Build App Compliant With Google Play 64-bit In Flutter
How to Build App Compliant With Google Play 64-bit In Flutter

After creating a project in a debug mode when the user submits the Final release APK to Play Store Sometimes throws a warning that state that “This Release is not Compliant With Google Play 64-bit“. So How to Build App Compliant With Google Play 64-bit In Flutter?

How to Build an App Compliant With Google Play 64-bit?

To Build App Compliant with Google Play 64-bit Kindly follow the below steps.

  • App bundle preferred
  • APK
Generating App Bundle

Run

flutter build appbundle

This will create

<app dir>/build/app/outputs/bundle/release/app.aab

T app bundle contains your Dart code and the Flutter runtime compiled for armeabi-v7a (32-bit) and arm64-v8a (64-bit).

Now upload this app bundle to google play.

Build an APK

Kindly run the below command in a terminal.

flutter build apk --split-per-abi

The below command results in two APK files:

<app dir>/build/app/outputs/apk/release/app-armeabi-v7a-release.apk
<app dir>/build/app/outputs/apk/release/app-arm64-v8a-release.apk

Removing the –split-per-abi flag results in a fat APK that contains your code compiled for all the target ABIs. Such APKs are larger in size than their split counterparts, causing the user to download native binaries that are not applicable to their device’s architecture.

The user needs to put the below code in the Gradle file.

ndk.abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64'

The example will look like below:

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "com.test.test"
        minSdkVersion 15
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        ndk.abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64'
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
}

Conclusion:

In this article, we have been through How to Build App Compliant With Google Play 64-bit In Flutter?

Thanks for being with Us !!!

Kindly share your valuable feedback.

FlutterAgency.com 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.

FlutterAgency.com is one of the most popular online portal dedicated to Flutter Technology and daily thousands of unique visitors come to this portal to enhance their knowledge on Flutter.

Leave a Reply