How to publish a flutter app and meet 64 bit and app bundle requirements

940 views
Skip to first unread message

Gwinyai Chakonda

unread,
Jun 5, 2019, 6:22:08 AM6/5/19
to Flutter Development (flutter-dev)
After using flutter build appbundle and uploading the .aab file I can't get past the 64 bit compliant warning message. 
The flutter Github thread suggests to upload 2 different apk.s one built for 64 bit and the other for 32bit unfortunately 
this solution no longer works because it does not confirm with the new appbundle requirements. I get a warning to use
the appbundle.

Please help

Gwinyai 

Maurice McCabe

unread,
Aug 9, 2019, 12:55:27 AM8/9/19
to Flutter Development (flutter-dev)
See https://github.com/mmcc007/fledge for how to automatically publish a flutter app to both stores. Includes an online demo of a live deploy to both stores.

Rabih M. ElBaba (Gmail)

unread,
Aug 9, 2019, 3:00:50 AM8/9/19
to Maurice McCabe, Flutter Development (flutter-dev)
By default, the app bundle contains your Dart code and the Flutter runtime compiled for 32-bit and 64-bit.

This command to generate the app bundle

flutter build appbundle --release

To split the target use the below

flutter build apk --release --target-platform android-arm64

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/3cfc7399-5658-4b0e-9bde-f5345259139f%40googlegroups.com.

Abhinai Vatsal

unread,
Aug 9, 2019, 3:27:51 AM8/9/19
to Flutter Development (flutter-dev)
Generate the APK and Analyze your APK using the 'APK Analyzer' in Android studio and Look within the lib folder, which is where you will find any '.so' files. If you can not find any '.so' files in your app at all, then your app is already ready and no further action is required. If you see armeabi-v7a or x86, then you have 32-bit libraries. If you have the 32-bit libraries then you need to have the 64-bit versions of same libraries and also you need to change the 'ndk.abiFilters' setting in your app's 'build.gradle' file.

The step by step process to generate the 64-bit supported APK is documented here : https://developer.android.com/distribute/best-practices/develop/64-bit

Gursewak Singh

unread,
Aug 9, 2019, 4:35:38 AM8/9/19
to Flutter Development (flutter-dev)
Hi,

This was help me yesterday 

defaultConfig {

    // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).

    applicationId "com.boffincoders.***********"

    minSdkVersion 21

    targetSdkVersion 28

    versionCode 5

    versionName "1.4.2"

    ndk.abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64'                        //Add this line

    testInstrumentationRunner "android.test.runner.AndroidJUnitRunner"

}


after that run this command

flutter build appbundle --release --target-platform=android-arm64


On Wednesday, June 5, 2019 at 3:52:08 PM UTC+5:30, Gwinyai Chakonda wrote:
Reply all
Reply to author
Forward
0 new messages