Hey guys,
I've been a long time Monkey-X user and my last game I released January last year was using Monkey-X version 86e. Since then I've not done much modern game dev stuff but am now getting back into it.
I have installed the latest version of Cerberus-X but I'm having endless issues building for Android.
I've got the latest Java version installed too (version 11.0.2 or something) and I have checked my Path and JAVA_HOME values:
JAVA_HOME has:
C:\Program Files\Java\jdk-11.0.2
JDK_HOME has:
%JAVA_HOME%
Path has:
C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\DevTools\TDM-GCC-32\bin;C:\Program Files\TortoiseSVN\bin;C:\KickAssembler\KickAss.jar;C:\WinVICE-2.4-x64\;C:\DevTools\AndroidSDK\platform-tools\;%JAVA_HOME%\bin;C:\Program Files\nodejs\;C:\exomizer-3.0.1\win32\;
Before I installed the above version of Java, I had a build error where the sourcefile was not version 1.7. So I thought I'd install the latest version to see what happens.
Now it's gone even more tits up:
TRANS cerberus compiler V2018-08-10
Parsing...
Semanting...
Translating...
Building...
Support for running Gradle using Java 7 has been deprecated and is scheduled to be removed in Gradle 5.0. Please see https://docs.gradle.org/4.4/userguide/java_plugin.html#sec:java_cross_compilation for more details.
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\cerberus-v2018-12-30\examples\mojo\ferdi\snake\snake.buildv2018-12-30\android\app\build.gradle' line: 1
* What went wrong:
A problem occurred evaluating project ':app'.
> java.lang.UnsupportedClassVersionError: com/android/build/gradle/AppPlugin : Unsupported major.minor version 52.0
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2s
TRANS FAILED: Android build failed.
My config.winnt.txt has these in for Java:
JDK_PATH="${SYSTEMDRIVE}\devtools\JDK"
JDK_PATH="${SYSTEMDRIVE\Program Files (x86)\Java\jdk1.6.0_45"
JDK_PATH="${SYSTEMDRIVE\Program Files (x86)\Java\jre1.8.0_201"
JDK_PATH="${SYSTEMDRIVE\Program Files\Java\jdk-11.0.2"
So I thought, since I can't seem to buid Android on Cerberus, let me go back to building on Monkey-X instead, but the problem then is that it builds but when you install the .apk on your phone, the phone reports "This app was built for an older version of Android and may not work properly"
This confirms my suspicions then that if I build with this, Google Play store reports my game(s) to be incompatible with my device(s), which means other people too would see this and therefore not buy it, which is pointless.
This means I really have to get Cerberus-X workign with Android, but it does something that Monkey-X does not, in that it uses Gradle to build Android apps, and I'm not familiar with Gradle or how to make it all play nice.
Can anyone help me or suggest what I can do to get Android to build on the latest version of Cerberus? My dev box is running Windows 7 Pro.
Thanks,
Jaco.
I've been a long time Monkey-X user and my last game I released January last year was using Monkey-X version 86e. Since then I've not done much modern game dev stuff but am now getting back into it.
I have installed the latest version of Cerberus-X but I'm having endless issues building for Android.
I've got the latest Java version installed too (version 11.0.2 or something) and I have checked my Path and JAVA_HOME values:
JAVA_HOME has:
C:\Program Files\Java\jdk-11.0.2
JDK_HOME has:
%JAVA_HOME%
Path has:
C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\DevTools\TDM-GCC-32\bin;C:\Program Files\TortoiseSVN\bin;C:\KickAssembler\KickAss.jar;C:\WinVICE-2.4-x64\;C:\DevTools\AndroidSDK\platform-tools\;%JAVA_HOME%\bin;C:\Program Files\nodejs\;C:\exomizer-3.0.1\win32\;
Before I installed the above version of Java, I had a build error where the sourcefile was not version 1.7. So I thought I'd install the latest version to see what happens.
Now it's gone even more tits up:
TRANS cerberus compiler V2018-08-10
Parsing...
Semanting...
Translating...
Building...
Support for running Gradle using Java 7 has been deprecated and is scheduled to be removed in Gradle 5.0. Please see https://docs.gradle.org/4.4/userguide/java_plugin.html#sec:java_cross_compilation for more details.
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\cerberus-v2018-12-30\examples\mojo\ferdi\snake\snake.buildv2018-12-30\android\app\build.gradle' line: 1
* What went wrong:
A problem occurred evaluating project ':app'.
> java.lang.UnsupportedClassVersionError: com/android/build/gradle/AppPlugin : Unsupported major.minor version 52.0
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2s
TRANS FAILED: Android build failed.
My config.winnt.txt has these in for Java:
JDK_PATH="${SYSTEMDRIVE}\devtools\JDK"
JDK_PATH="${SYSTEMDRIVE\Program Files (x86)\Java\jdk1.6.0_45"
JDK_PATH="${SYSTEMDRIVE\Program Files (x86)\Java\jre1.8.0_201"
JDK_PATH="${SYSTEMDRIVE\Program Files\Java\jdk-11.0.2"
So I thought, since I can't seem to buid Android on Cerberus, let me go back to building on Monkey-X instead, but the problem then is that it builds but when you install the .apk on your phone, the phone reports "This app was built for an older version of Android and may not work properly"
This confirms my suspicions then that if I build with this, Google Play store reports my game(s) to be incompatible with my device(s), which means other people too would see this and therefore not buy it, which is pointless.
This means I really have to get Cerberus-X workign with Android, but it does something that Monkey-X does not, in that it uses Gradle to build Android apps, and I'm not familiar with Gradle or how to make it all play nice.
Can anyone help me or suggest what I can do to get Android to build on the latest version of Cerberus? My dev box is running Windows 7 Pro.
Thanks,
Jaco.