Skip to main content
Inspiring
October 7, 2017
Question

dx tool failed -AIR27

  • October 7, 2017
  • 2 replies
  • 3719 views

I have problem to package for android.I got some problem with publish with ane.(problem here AIR Admob ANE issue #3500: The extension context does not have a method with the name cacheInterstitial )

Today I was update AIR SDK to latest version but I got this error dx tool failed.

I follow this topic before I open this discussion.dx tool failed: Could not create the Java virtual machine

so Iremoved java and download to new version from here https://www.java64.net/

but I get still same issue.Someone said reason is Kaspersky and I removed too.But nothing change.Thanks ahead of time for any help.

This topic has been closed for replies.

2 replies

dimitrisr46717489
Participant
November 17, 2017

Just for those who still need help, i fixed this problem (in CS6) by creating JRE_HOME system variable.

Just create the variable and set the path to your installed JRE.

Then another issue occured. Something like "unable to access jarfile adt.jar" during apk publish. The fix for this issue was moving my AIR SDK to a certain path (C:\Program Files (x86)\Adobe\Adobe Flash CS6) and give it a name using a certain expression. For instance, "AIR 25 SDK" folder had to be renamed to "AIR25.0". In the same folder, AIR 3.2 and AIR 3.4 are available but are too deprecated.

For unknown reasons, during publish my CS6 was always checking for SDK libraries using the path and name (AIRx.0) mentioned above. After doing what i mentioned above, i imported sdk to CS6 and published APKs with success.

All in all, these 2 steps solved my problem and i can use latest AIR SDKs with my Adobe Flash CS6.

cultzoneZai
Participating Frequently
November 3, 2019

yes, its our doubt too: the JRE its the same of the JDK?

the var JAVA its thesame of JRE?

 

the error persists, when we try to export the apk

 

Anki_AG_
Adobe Employee
Adobe Employee
October 9, 2017

Please check Re: AIR25 - dx tool failed  and Re: dx tool failed: Could not create the Java virtual machine - adobe air 26 .

Please let us know if this helps.

Thanks,

Ankit | Adobe AIR Engineering

Participant
October 17, 2017

Hi, I have this same problem. Flash Animate throws message "dx tool failed: Could not create the Java virtual machine".

I have latest Java 64bit installed and put the java path directly into adt.bat (as mentioned in other posts).

I try to generate a AIR Android apk.

What can I do else to get it back working?

KucuKekoAuthor
Inspiring
October 19, 2017

I switch to Animate CC from the cs6 and no problem anymore.