Closed Vimd0 closed 3 months ago
This seems like an issue with your Gradle or Java installation. Try clearing your Gradle cache (there should be instructions online). Also, what version of Java are you using? It must be at least JDK 17.
Sent via the Samsung Galaxy S21 5G, an AT&T 5G smartphone Get Outlook for Androidhttps://aka.ms/AAb9ysg
From: Vimdo @.> Sent: Tuesday, January 16, 2024 9:05:17 PM To: ReMinecraftPE/mcpe @.> Cc: Subscribed @.***> Subject: [ReMinecraftPE/mcpe] Android Build ERROR "FAILURE: Build failed with exception." (Issue #114)
Hello, me again. I dug around in the Android platform and tried to run gradlew.bat but kept getting an error message. Also, I have no idea how to build for Android and have never created an Android app before. Some help would be greatly appreciated!
Screenshot.339.png (view on web)https://github.com/ReMinecraftPE/mcpe/assets/156633328/0f8fc5db-8e5b-445d-89e9-54393019958e
— Reply to this email directly, view it on GitHubhttps://github.com/ReMinecraftPE/mcpe/issues/114, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEFLGIA62MXHIQCI7BPBSO3YO4WV3AVCNFSM6AAAAABB5YN2WOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA4DKMRVGU3TOMI. You are receiving this because you are subscribed to this thread.Message ID: @.***>
"via email" 💀
I'm using Java 8
"via email" 💀
Could you not?
I'm using Java 8
Try using a more up to date java version. Java 8 came out on 18 March 2014. Actually Java 8 is out of free support, you must pay Oracle to keep receiving security updates until 2030.
Try downloading JDK 17 here or whichever flavor you want, extract it somewhere, and add -Dorg.gradle.java.home=C:\path\to\your\jdk17
(replace with the path to the JDK you extracted) to temporarily use JDK17 during the build.
Or you can just change your JAVA_HOME
environment variable to the directory of JDK 17.
Alr, thx guys I'll look into this later.
Okay, I finally got it to build, but I can't find the apk file. Am I missing a step? Is there anything I need to install? Am I doing something incorrect?
Looks like you only ran the gradlew
batch script with no arguments. If you want to build from the command line, reference this page to build a release build and sign it. (required for release builds)
Alr, I try it.
Okay, I finally figured out how to build it, but none of the textures or UI will load. What now?
So, I apparently put the asset folder in the wrong location when attempting to build it yesterday. Thats why it was not loading anything. I finally figured out everything. Thank you for the fast responses and assistance in getting this thing up and running!
Hello, me again. I dug around in the Android platform and tried to run gradlew.bat but kept getting an error message. Also, I have no idea how to build for Android and have never created an Android app before. Some help would be greatly appreciated!