Android Build error [Solved]

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
Rhapsy
Newbie
Posts: 20
Joined: Fri Mar 01, 2024 3:45 pm
itch: Rhapsy
Contact:

Android Build error [Solved]

#1 Post by Rhapsy »

Hello. I am a beginner in this engine and I am having trouble building my project for Android devices. I already tried reinstalling the rapt folder and other programs like java.

Code: Select all

Ren'Py 8.2.0.24012702

I'm compiling a short test program, to see if you have a working JDK on your system.



Java version: 21
Target version: 21
OK




The JDK is present and working. Good!

Updating project.

Creating assets directory.

Packaging internal data.

I'm using Gradle to build the package.
To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.5/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
Daemon will be stopped at the end of the build 
Checking the license for package Android SDK Build-Tools 34 in C:\Users\pc\Documents\Nueva carpeta\Nueva carpeta\Nueva carpeta\renpy-8.1.3-sdk\rapt\Sdk\licenses
License for package Android SDK Build-Tools 34 accepted.
Preparing "Install Android SDK Build-Tools 34 v.34.0.0".
"Install Android SDK Build-Tools 34 v.34.0.0" ready.
Installing Android SDK Build-Tools 34 in C:\Users\pc\Documents\Nueva carpeta\Nueva carpeta\Nueva carpeta\renpy-8.1.3-sdk\rapt\Sdk\build-tools\34.0.0
"Install Android SDK Build-Tools 34 v.34.0.0" complete.
"Install Android SDK Build-Tools 34 v.34.0.0" finished.
> Task :app:preBuild UP-TO-DATE
> Task :app:preReleaseBuild UP-TO-DATE
> Task :renpyandroid:preBuild UP-TO-DATE
> Task :renpyandroid:preReleaseBuild UP-TO-DATE
> Task :app:javaPreCompileRelease
> Task :app:generateReleaseResValues
> Task :renpyandroid:writeReleaseAarMetadata
> Task :renpyandroid:generateReleaseResValues
> Task :renpyandroid:generateReleaseResources
> Task :app:checkReleaseAarMetadata
> Task :renpyandroid:packageReleaseResources
> Task :app:mapReleaseSourceSetPaths
> Task :app:generateReleaseResources
> Task :app:packageReleaseResources
> Task :app:createReleaseCompatibleScreenManifests
> Task :app:extractDeepLinksRelease
> Task :renpyandroid:extractDeepLinksRelease
> Task :app:parseReleaseLocalResources
> Task :renpyandroid:processReleaseManifest
> Task :renpyandroid:parseReleaseLocalResources
> Task :renpyandroid:compileReleaseLibraryResources
> Task :app:mergeReleaseResources
> Task :app:processReleaseMainManifest
> Task :app:processReleaseManifest
> Task :app:processReleaseManifestForPackage
> Task :renpyandroid:javaPreCompileRelease
> Task :app:extractProguardFiles
> Task :renpyandroid:processReleaseJavaRes NO-SOURCE
> Task :renpyandroid:generateReleaseRFile
> Task :renpyandroid:mergeReleaseJniLibFolders
> Task :app:processReleaseResources
> Task :renpyandroid:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':renpyandroid:compileReleaseJavaWithJavac'.
> Java compiler is not available. Please check that C:\Program Files\Eclipse Adoptium\jre-21.0.2.13-hotspot contains a valid JDK installation.

* 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 2m 22s
25 actionable tasks: 25 executed




The build seems to have failed.
Last edited by Rhapsy on Mon Mar 11, 2024 10:35 am, edited 1 time in total.

jeffster
Veteran
Posts: 409
Joined: Wed Feb 03, 2021 9:55 pm
Contact:

Re: Android Build error

#2 Post by jeffster »

Does C:\Program Files\Eclipse Adoptium\jre-21.0.2.13-hotspot contain a valid JDK installation?

Rhapsy
Newbie
Posts: 20
Joined: Fri Mar 01, 2024 3:45 pm
itch: Rhapsy
Contact:

Re: Android Build error

#3 Post by Rhapsy »

jeffster wrote: Sat Mar 02, 2024 6:27 am Does C:\Program Files\Eclipse Adoptium\jre-21.0.2.13-hotspot contain a valid JDK installation?

I also thought there was a simple solution. But how can I know if I have it installed? I thought the latest version of Java already had it included.
Any external JDK program or recommended version?

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Android Build error

#4 Post by Imperf3kt »

I believe the link the launcher gives you is all you should need. Maybe make sure you're up to date
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

Rhapsy
Newbie
Posts: 20
Joined: Fri Mar 01, 2024 3:45 pm
itch: Rhapsy
Contact:

Re: Android Build error

#5 Post by Rhapsy »

I fixed it. I downloaded openJDK 21.0.2 and replaced all its contents from the .zip in C:\Program Files\Eclipse Adoptium\jre-21.0.2.13-hotspot

Post Reply

Who is online

Users browsing this forum: No registered users