Bug? [Solved] B4A 5.2 google play services 26

woniol

Active Member
Licensed User
Longtime User
When I compile a project that uses google-play-services, the compiler stops at
'Convert byte code - optimized dex'

I have latest google_play_lib v26.

The project i try to compile is an example of FusedlocationProvider lib from this page (first post):
FusedLocationProvider


upload_2015-8-29_10-14-21.png
 

Attachments

  • upload_2015-8-29_10-14-11.png
    upload_2015-8-29_10-14-11.png
    27 KB · Views: 182

b4auser1

Well-Known Member
Licensed User
Longtime User
https://www.b4x.com/android/forum/threads/google-play-services-installation-tips.45843/
- google-play-services.jar is a large library. It will add about 3mb to the apk size. It will also slow down the compilation process.
You can make the optimized dexer step much quicker by increasing the memory that the dexer can use.
In order to do this you need to close the IDE, go to %APPDATA%\Anywhere Software\Basic4android in Windows explorer.
Edit b4aV0.1.ini with a text editor and increase the value of MaxRamForDex from 512 to 1024 or more.
 

woniol

Active Member
Licensed User
Longtime User
Thanks,
increasing the value of MaxRamForDex to 1024 helped.
I think b4xV5.ini is for B4A 5.20.

Thank you very much.
 
Top