ReMinecraftPE / mcpe

ReMinecraftPE - A custom experience based on Minecraft PE as of 2011.
https://discord.gg/UKGhuKNmFu
Other
308 stars 47 forks source link

Android Build ERROR "FAILURE: Build failed with exception." #114

Closed Vimd0 closed 3 months ago

Vimd0 commented 5 months ago

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)

TheBrokenRail commented 5 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: @.***>

AnnoyedUser420 commented 5 months ago

"via email" 💀

Vimd0 commented 5 months ago

I'm using Java 8

iProgramMC commented 5 months ago

"via email" 💀

Could you not?

iProgramMC commented 5 months ago

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.

Source: https://en.wikipedia.org/wiki/Java_version_history

uniformization commented 5 months ago

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.

Vimd0 commented 5 months ago

Alr, thx guys I'll look into this later.

Vimd0 commented 5 months ago

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?

Screenshot (405)

Screenshot (406)

uniformization commented 5 months ago

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)

Vimd0 commented 5 months ago

Alr, I try it.

Vimd0 commented 5 months ago

Okay, I finally figured out how to build it, but none of the textures or UI will load. What now?

womp womp

Screenshot (421)

Vimd0 commented 5 months ago

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!

Screenshot_20240124_213008_ReMinecraftPE