Copy link to clipboard
Copied
When I try to publish an ADK using the ADT command with air 26 I get this error:
dx tool failed: Could not create the Java virtual machine
Some users had the same issue publishing in animate here: Re: dx tool failed: Could not create the Java virtual machine
Re: dx tool failed: Could not create the Java virtual machine
However the suggested solution of using an old version of java didn't work for me. I tried installing jre8u74. Got the same error. The odd thing is I can publish using animate using air 26 with no error. However, when using the command line to publish android I get this error. This doesn't make sense. Has anyone encountered this with air 26 or has something become corrupt in my installs?
Thanks!
Copy link to clipboard
Copied
I use java 1.8.0.101 (64bit) is ok. And edit air sdk folder ..\26.0.0\bin\adt.bat
-jar "%~dp0\..\lib\adt.jar" %* -------> "C:\Program Files\Java\jre1.8.0_101\bin\java.exe" -jar "%~dp0\..\lib\adt.jar" %*
Copy link to clipboard
Copied
Thank you for your reply. I believe I solved this by installing the newest version of java. If it crops up again I'll try your solution.
Copy link to clipboard
Copied
the java JRE its the same of the JDK?