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

Sujan Dasmahapatra yellowlemontree0821 at gmail.com
Mon Jun 10 02:29:00 CEST 2019


Dear Gunter and all,


Finally I'm able to publish the app. We need to build with arm64-v8
version. And we need to create app bundle using android studio.

Thanks a lot for your help.

On Sat, Jun 8, 2019, 9:18 PM Guenter Schwann via Android-development <
android-development at qt-project.org> wrote:

> 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
>
>
>
> _______________________________________________
> Android-development mailing list
> Android-development at qt-project.org
> https://lists.qt-project.org/listinfo/android-development
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/android-development/attachments/20190610/fb3a0d4e/attachment.html>


More information about the Android-development mailing list