Android Question Could not create the Java Virtual Machine

Peekay

Active Member
Licensed User
Longtime User
Can anybody help to identify the cause of this error:

Organizing libraries. (0.00s)
(AndroidX SDK)
Generating R file. (2.22s)
Compiling debugger engine code. Error
Invalid maximum heap size: -Xmx0m
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Thanks
PK
 

DonManfred

Expert
Licensed User
Longtime User
How do I set it correctly?
 
Upvote 0

Peekay

Active Member
Licensed User
Longtime User
Thanks DonManfred. I did get it right by setting the MaxRamForDex=1024 in the .ini file.
However, the errors 7 errors I get:
Uncaught translation error: com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26)
still plaques me.
All the clues point to me desugaring some .AAR files, but I cannot establish which.

PK
 
Upvote 0

Peekay

Active Member
Licensed User
Longtime User
I have now established that the error comes from this code line:
Code lines:
#AdditionalJar: mssql-jdbc-8.2.2.jre8.jar

PK
 
Upvote 0
Top