Hi guys.
I want to ask, is anyone familiar with Ant build scripts?
I have encountered some problems that I cannot solve.
I hope to use SDK to complete the release of desktop games and Android games.
However, SDK3.3.2 (Jme3.3.2API) seems to have to run on jdk11?
When I build android, ant prompts that 1.5 source is not supported. as follows:
(The translated meaning is: 11 does not support the --boot-class-path option)
The reason I don’t use AndroidStudio is that I don’t want to use SDK to maintain the desktop version, and then use AndroidStudio to maintain a separate Android version. I hope everything is done in the SDK.
Hope someone can help me, thanks.!
To sum it up, this happens when mixing prior versions of java and java 11 because of some implementation changes in nio. I fixed it by adding --release N (8 in my case) to my gradle files. I’m sorry I can’t help you to do it with ant
You just said JME didn’t work with Java older than 11… and I’ve never run a Java newer than 8 and I use JME all the time. So that’s all I can say. JME works fine with Java 7 last I checked 6 months ago… and definitely with 8 because I’ve run it in Java 8 about 200 times today.
A little off topic, but I actually use Android Studio to develop both my desktop and android apps. I just have a gradle project that contains what I need, and a subproject containing the android harness and other files. Since Android Studio is pretty much Intellij IDEA with a few extra features, it works pretty well. My JME Controller Config project demonstrates my setup pretty well, if you’re interested.
Thank you for the solution . I will check it out. But I still need to use the functions of the SDK, such as adding Control to the editor, adding AudioNode, and using the editor to make levels.
I really don’t want to use the SDK to maintain the level, Control, and AudioNode information separately, and then use AndroidStudio to write the game logic and package the APK.
So I am still looking for the details of ant build.