Android Build Tools 29.0.3 not supported with jMonkeyEngine SDK v3.6.0-stable

Hi ,

I am new to JME and using jMonkeyEngine SDK v3.6.0-stable with java 17 64bit to create mobile project (JME3 → JME3 Tests Android) I set project android 10 ( target=android-29 ) BUT building project stopped with following error:

Pre-Dexing C:\Users\HP\Documents\JmonkeyEngine Game Projects\JME3TestsAndroid_1\mobile\libs\gson-2.9.1.jar -> gson-2.9.1-63f00f9cacb2b097b84dfaf959c89080.jar
-Djava.ext.dirs=G:\Developments\Android\tools_r25.2.5-windows\build-tools\29.0.3\lib is not supported.  Use -classpath instead.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
C:\Users\HP\Documents\JmonkeyEngine Game Projects\JME3TestsAndroid_1\nbproject\mobile-impl.xml:21: The following error occurred while executing this line:
G:\Developments\Android\tools_r25.2.5-windows\tools\ant\build.xml:888: The following error occurred while executing this line:
G:\Developments\Android\tools_r25.2.5-windows\tools\ant\build.xml:890: The following error occurred while executing this line:
G:\Developments\Android\tools_r25.2.5-windows\tools\ant\build.xml:902: The following error occurred while executing this line:
G:\Developments\Android\tools_r25.2.5-windows\tools\ant\build.xml:283: null returned: 1
BUILD FAILED (total time: 7 seconds)

I changed to java 1.8 and it worked -Djava.ext.dirs deprecated from java 1.9 up that is.

1 Like