Recent

Author Topic: Android App Bundles?  (Read 680 times)

nullpointer

  • New Member
  • *
  • Posts: 35
  • impossible is nothing
    • tauhidslab
Android App Bundles?
« on: March 07, 2020, 03:00:44 pm »
How to build Android App Bundles?

i'm trying to upload my LAMW project to Play Store and got following error

This release does not comply with the 64-bit Google Play requirements

The following APK or App Bundle is available for 64-bit devices, but only has 32-bit native code: 2.

Enter 64-bit and 32-bit native code in your application. Use the Android App Bundle publication format to ensure directly that each device architecture only accepts the required native code. This will prevent the addition of the overall application size.

https://developer.android.com/guide/app-bundle?hl=en

please help...

jmpessoa

  • Hero Member
  • *****
  • Posts: 1787
Re: Android App Bundles?
« Reply #1 on: March 07, 2020, 05:14:37 pm »

You need produce a 64bits LAMW "libcontrols.so", too, before generate your apk....

Project --> Project Options -->  [LAMW] ..... -->  Build

Please, read the docs about 64bits here:

https://github.com/jmpessoa/lazandroidmodulewizard/tree/master/docs
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

nullpointer

  • New Member
  • *
  • Posts: 35
  • impossible is nothing
    • tauhidslab
Re: Android App Bundles?
« Reply #2 on: March 08, 2020, 12:59:30 am »
thank you jmpessoa.

i build the apk using Aarch64. it solve the error. but now i got the warning message.

This APK results in sending code and content that are not used to the user. Your application can be smaller if you use the Android App Bundle. By not optimizing your application for configuration, your application is more likely to be downloaded and installed on a user's device than it should be. Larger applications tend to have lower installation success rates and take up storage space on users' devices.

Resolution:

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

please help.

lainz

  • Hero Member
  • *****
  • Posts: 3964
  • Leandro Diaz
Re: Android App Bundles?
« Reply #3 on: March 08, 2020, 01:20:07 am »
Yes, that is the rule now, you must submit only app bundles.

It says is possible with APK, but you need to create several APK, for example with only the icon resolution needed for each device kind, I think is depending on the DPI of the screen, but I'm not sure.
https://lainz.github.io/ - My Website :)
https://lazpaint.github.io/ -  Download LazPaint

nullpointer

  • New Member
  • *
  • Posts: 35
  • impossible is nothing
    • tauhidslab
Re: Android App Bundles?
« Reply #4 on: March 08, 2020, 02:43:43 am »
how to solve the warning message lainz?

nullpointer

  • New Member
  • *
  • Posts: 35
  • impossible is nothing
    • tauhidslab
Re: Android App Bundles?
« Reply #5 on: March 08, 2020, 10:00:05 am »
basically, the warning message can be ignored. it because we can still release our app by ignoring the warning mesaage.

lainz

  • Hero Member
  • *****
  • Posts: 3964
  • Leandro Diaz
Re: Android App Bundles?
« Reply #6 on: March 08, 2020, 04:18:26 pm »
basically, the warning message can be ignored. it because we can still release our app by ignoring the warning mesaage.

Great.  :)
https://lainz.github.io/ - My Website :)
https://lazpaint.github.io/ -  Download LazPaint

 

TinyPortal © 2005-2018