help
Build Android version (Ren'Py) failed
This is a really common problem.
This is an "out of memory" error, as you can see towards the end of the exception trace. The problem is that the default settings that Ren'py uses to configure Gradle (the build tool for Android) don't reserve enough memory for larger games to be built.
The amount of memory Gradle is allowed to use is configured in a file called "gradle.properties". There are two copies under your renpy-xxx-sdk/rapt folder, one in rapt/project and one in rapt/prototype. I think if you update the one in rapt/prototype, it gets copied to rapt/project, but update both to be certain.
What you'll find in there is a line something like:
Code:
org.gradle.jvmargs=-Xmx3g
Basically, if the line reads like that, it limits Gradle to using 3 gigabytes of memory, which usually isn't enough. (The -Xmx part is the option defining "maximum Java heap memory", and the "3g" part is how much.
I modified mine to
Code:
org.gradle.jvmargs=-Xmx8g
to give it 8 gigabytes, which seems to work for me. (Of course, that assumes you HAVE more than 8 gig on your system. I have 32g, so an 8g process is doable) In any event, you need to kick up this number until it works.