Problem while building for Android

I'm just gonna leave the debug console log here (way too heavy to be uploaded as draft). These errors occured while I was trying to build the blank project template, so it probably has something to do with some installation done uncorrectly (cordova, sdk etc...).

EDIT: I think I might have avoided the worst of it. Attached the new log.
Try removing the spaces from the path. Windows is pretty much the only platform that tolerates them.
Nope. Is it possible that VN Maker hasn't been optimized for JDK 9.0.1 yet? The guide says 7+ tough...
Hi FoxySeta,

Cordova won't work with JDK 9. Also, the Android tools don't work properly with JDK 9. I work with Mac OsX High Sierra, but I think is gonna be similar to Windows.

Make sure you install JDK 1.8. I have both (1.8 and 9) installed on my machine

Setup your JAVA_HOME variable for JDK 1.8.

Change the extension of the file "Info.plist" located in "/Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/" to "Info.plist.disabled".

"Only for High Sierra" In Terminal type:

sudo chmod 755 "/Applications/Android Studio.app/Contents/gradle/gradle-4.1/bin/gradle"

This didn't only solve the problem with VN Maker, but also with Unity. Hopefully, everybody will update their tools to work with Java 9.
Thanks @Tomcat 😍
May I have a link to 1.8? I have no idea where to find one on oracle.com actually...
Here it is FoxySeta,

Java SE Downloads

There you'll find the JDK and JRE for 1.8 and 9. Make sure to download and install the JDK.
@Tomcat Yeah that's where I found 9, but there's no 1. 8 version. VN Maker help files linked to 8, but that's probably not the same thing.
Hi FoxySeta, is under Java SE 8u151/ 8u152. Here is the direct link:

Java SE Development Kit 8 Downloads. Sorry for the confusion about version numbers. Here is better explained JDK 8 Naming.

After installing Java and typing "java -version" it should return java version "1.8.x" where x is the latest version installed.
@Tomcat Thanks, it installed correctly. In the end I should have just trusted the manual😔
What about
Code:
/Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/
(I know I'm bein' embarassingly noob but I just can't figure this out)?
FoxySeta, You can disregard my previous post, my bad. I'm assuming you have installed Java 8 and check that is installed successfully.

After installing Java, set properly the JAVA_HOME environment variable, here are the instructions from Java Oracle Help. Then follow the instructions in VN Maker for Testing and Deployment for Android. Make sure your ANDROID_HOME environment variable is set properly after installing Android Studio, the instructions are also in the following Cordova link. When installing Cordova, follow their instructions here Cordova Android Platform Guide. You should be able to build a test apk.

If everything goes well, jump into VN Maker, open the debug console, then build using Game > Build For > Android Cordova.

If you have any error, take note of your debug console window.
If you have any error, take note of your debug console window.
​
EDIT: I think I might have avoided the worst of it. Attached the new log.
It looks like you have a problem in Gradle.

Did you build the hello apk and tested without problems?
When installing Cordova, follow their instructions here Cordova Android Platform Guide. You should be able to build a test apk.

Try to identify the problem. Restart your machine. Build a test apk in Android Studio, is successful try with the hello test apk from Cordova. Run it on the Emulator. Then try with VN Maker. That way you'll find which tool is giving the problem.

The error in your log is this:
Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap

It looks like when starting a Gradle Daemon the VM is trying to reserve 2GB and doesn't have enough space. Try decreasing it, you'll find the info here [URL='https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties']Configuring the build environment via gradle.properties[/URL]. Good luck.

Original thread: https://forums.rpgmakerweb.com/threads/problem-while-building-for-android.88661/