Unoptimized APK warnung when publishing simple codenameone app.Via Google Play Console.

53 views
Skip to first unread message

shop.servic...@gmail.com

unread,
Jun 9, 2019, 11:30:03 AM6/9/19
to CodenameOne Discussions
If you are experiencing an issue please mention the full platform your issue applies to:
IDE: NetBeans/Eclipse/IDEA NetBeans 8.2
Desktop OS Windows 10 Pro
Simulator Latest
Device Android 7+

Purchased Google Developer license
Trying to publish simple app and getting:

Unoptimized 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 optimizing 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 install success rates and take up storage on users' devices.

Resolution:

Use the Android App Bundle to automatically optimize for device configurations, or manage it yourself with multiple APKs.


And with that warning, the "Start Rollout to internal test" is disabled.

Please see attached screen shot.

Using codenameone, is there a simple way to publish to google play store w/o using the Google Play Console?

Thanks in advance.

Any documentation will be greatly appreciated.

Regards
Google Review Screen Shot.PNG

Shai Almog

unread,
Jun 10, 2019, 12:30:33 AM6/10/19
to CodenameOne Discussions
That's Google's BS.
Google has an option to split APK resources which we don't leverage and don't really need to. In fact for Codename One Build it estimates using it can save 6% of the download size. That's more than nothing but it's a small number.

This is required for apps built in Android Studio because they are so damn wasteful in terms of resources. We get that exact same warning for Codename One build but the funny part is the report. Where they show we are 66% smaller than the median app even without those redundant "optimizations":

Screen Shot 2019-06-10 at 7.26.05.png


shop.servic...@gmail.com

unread,
Jun 10, 2019, 7:35:32 AM6/10/19
to CodenameOne Discussions
how do you work around this and get the app published despite their optimization complaint?

Regards.

Shai Almog

unread,
Jun 11, 2019, 12:22:31 AM6/11/19
to CodenameOne Discussions
It's a warning it doesn't block or delay app publication. The publication UI is VERY badly designed. It's confusing, with the last update for that it took me ages to figure out publication.

shop.servic...@gmail.com

unread,
Jun 11, 2019, 8:54:19 AM6/11/19
to CodenameOne Discussions
Notice the "Start Roll Out To Publication" is disabled which prohibits me form continuing to publication.

Do you know how to get past this?

Dave Dyer

unread,
Jun 11, 2019, 11:59:06 AM6/11/19
to CodenameOne Discussions
It may be google BS, but what's the downside of complying?

Shai Almog

unread,
Jun 12, 2019, 12:02:27 AM6/12/19
to CodenameOne Discussions
The UI there is very obtuse, it isn't failing because of that warning... Everyone gets that so if it had failed none of us would be able to submit.
You need to look through the other pages in the site for small things that failed there, it's something else that's blocking like answering the child protection questions etc.

shop.servic...@gmail.com

unread,
Jun 12, 2019, 8:06:21 AM6/12/19
to CodenameOne Discussions
Thanks.

Q.
If I execute following code:

                    final String filename = PathTo_A3Tech.ipa;
                    Display.getInstance().execute(filename , e -> {
                    });
Will the OS (IOS 12+ & Android 7+) be able to run the correct app to install this?

If not, can you please advise me what code in my app can open this file (stored locally on device) and install it?

Thanks in advance.

regards.

Shai Almog

unread,
Jun 12, 2019, 11:26:16 PM6/12/19
to CodenameOne Discussions
No. This is actually prohibited by all appstores and it's not something we support because devices generally try to block it as that's effectively adware/virus behavior (I know it's not your intention but that's what those guys do).
There are native hacks for installation but usually it's via download not for a locally available APK or IPA.

shop.servic...@gmail.com

unread,
Jun 13, 2019, 8:07:34 AM6/13/19
to CodenameOne Discussions
That's a shame, I much prefer a closed loop control over my distributions.

Thanks for your time.

Regards.
Reply all
Reply to author
Forward
0 new messages