-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android unable to Compile #3602
Comments
What extensions are you using in your project? I'm guessing you may have a few conflicting there with the duplicate definition errors. We are in the midst of a major migration so if you have some old and some new extensions it could cause an issue like this. Are you using apm? It should have warned you about conflicts if you are. |
HI @marchbold , I have downloaded all the ANEs again, now the error changed: My extensions and the new error below. Thanks you!
The error:
|
That's a Java compatibility problem. Class file 65 means it needs Java runtime 21. You're running Java from: thanks |
Hello @ajwfrost, I have deleted JAVA 17, installed JAVA 21, restarted the PC and point the adt.cfg to JAVA_HOME: JAVA_HOME=C:\Program Files\Java\jdk-21 But the error remains. Thanks!
|
You should be able to use 17 with all our extensions currently. My guess is there's a conflict between our extensions we have started a massive update of all our extensions to use gradle dependencies instead of direct packaging. We are still rolling out this update so you may have inadvertently updated to incompatible extensions. I'll make the ones in your list our priority and get you updated versions asap. In the meantime you could use apm to get a stable combination as this will report the conflicts for you. |
Hi @marchbold , understood, will go back to 17, and we will wait for more updates, thanks! |
I'm just looking at this part though:
We're not writing out the details of the build tools that are being used but I do wonder if it's picking up a version that's a bit too new! So I would say that Gradle is trying to run a tool that's been built using JDK 21 (and hasn't been set to a lower compatibility level). Or actually, having Googled that error, it could be trying to examine a dependency that was built using JDK 21. I'm wondering if we should have a way to enable more details so that Gradle actually gives us some useful output! If you set the "KeepAndroidStudioOutput" configuration setting, you could try opening the project in Android Studio and building from there, and then hopefully it would have the option to build with thanks |
@speego76 Majority of the updates are completed now. Let me know if you are still having any issues. |
Hello,
I did search the latest posts related to JAVA and Android Studio, did follow some instructions that worked for some others without luck.
Latest Animate
AIR 51.1.1.5
JAVA 17.0.11
Latest Android Studio, with Build Tools 34.0.0 Stable, can run simulator and also install sample app in the Android Phone
JAVA_HOME=C:\Program Files\Android\Android Studio\jbr
Thanks for the assistance!
Below adt.log:
The text was updated successfully, but these errors were encountered: