Android Question Uncaught translation error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Jav

rafaelmotaquintana

Active Member
Licensed User
Convert byte code - dex. Error
Uncaught translation error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space
1 error; aborting



This error shows after I upgrade the manifest line

<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="26"/>

to

<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="28"/>

I downloaded the recommended 28 versions, and changed the paths
Android.jar = C:\android\platforms\android-28\android.jar

Also changed this line in file B4XV5.INI

MaxRamForDex=1024

Using Windows 7 32bits, 4GB Ram.
I don't know what else to do. I have read that using 64bits
 

Pendrush

Well-Known Member
Licensed User
Longtime User
You need 64bit windows and JDK x64 or OpenJDK, to be able to set MaxRamForDex=2048 or MaxRamForDex=3096.
 
Upvote 0

rafaelmotaquintana

Active Member
Licensed User
I installed the system in Windows 2016 Server 64bits.
Everything fine, but have this problem.
When trying to open SDK MANAGER, I Got this error, and suggested items to install does not appears

c:\Users\Administrator\AppData\Local\Temp\1 (Access is denied)

I don't know if I have to open another thread for this, sorry.

Thanks in advance
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Start with the "ready to run" SDK: https://www.b4x.com/android/forum/threads/99780/#content

The error means that the default temp folder is not accessible. You can try to run B4A as an administrator. It might help. Another option is to run the sdk manager from B4J and change the temp folder. It is a simple change.
 
Upvote 0
Top