[Android-development] android app publish error for app bundle optimization

Guenter Schwann guenter at vikingsoftware.com
Sat Jun 8 17:32:49 CEST 2019


On Freitag, 7. Juni 2019 16:16:05 CEST Sujan Dasmahapatra wrote:
> Dear Folks
> 
> I need some help. I am building an app and trying to publish it on play
> store. I am getting warnings as
> 
> ////////////////////////////////////////////////////////////////////////////
> //////////////////////////////////////////
> 
> Unoptimised APK
> 
> Warning:
> 
> This APK results in unused code and resources being sent to users. Your app
> could be smaller if you used the Android App Bundle. By not optimising your
> app for device configurations, your app is larger to download and install
> on users' devices than it needs to be. Larger apps see lower installation
> success rates and take up storage on users' devices.
> 
> Resolution:
> 
> Use the Android App Bundle <https://g.co/androidappbundle> to automatically
> optimise for device configurations, or manage it yourself with multiple
> APKs.
> 
> ////////////////////////////////////////////////////////////////////////////
> //////////////////////////////////////////
> 
> 
> I searched a bit on net, and found to build with app bundle, as the code
> snippet below for build.gradle.
> 
> // Add this block and enable/disable the parameters as follows
>     bundle {
>         density {
>             // Different APKs are generated for devices with different
> screen densities; true by default.
>             enableSplit true
>         }
>         abi {
>             // Different APKs are generated for devices with different CPU
> architectures; true by default.
>             enableSplit true
>         }
>         language {
>             // This is disabled so that the App Bundle does NOT split the
> APK for each language.
>             // We're gonna use the same APK for all languages.
>             enableSplit false
>         }
>     }
> 
> But it is throwing errors as it is not getting bundle I guess and it's
> format.
> 
> How can I solve it. Any suggestions is highly appreciated.

Just a shot into the blue:
Do you use debug build instead of release build?

No idea if that could trigger that message, but ...


-- 
Günter Schwann | Qt Expert

guenter at vikingsoftware.com
http://www.vikingsoftware.com





More information about the Android-development mailing list