Shin-NiL / Godot-Android-Admob-Plugin

Android AdMob plugin for Godot Game Engine 3.2 or higher
MIT License
543 stars 66 forks source link

ERROR he heap size specified, -Xmx4536m, exceeds the maximum representable size #226

Closed eliecer696 closed 10 months ago

eliecer696 commented 11 months ago

when i tray to play test my app on my device i get this error am using godot 3.5.2 is there a way to fix this FAILURE: Build failed with an exception.

lele25811 commented 10 months ago

I solved this error: Uninstall your current JDK, and install JDK 18, set JAVA_HOME to your JDK 18 folder

eliecer696 commented 10 months ago

I solved this error: Uninstall your current JDK, and install JDK 18, set JAVA_HOME to your JDK 18 folder

how do i set JAVA_HOME to my jdk folder

lele25811 commented 10 months ago

-> Search for "Environment Variables" then select "Edit the system environment variables" -> Click the Environment Variables button -> Under System Variables, click New or if you have yet the name JAVA_HOME you can modity it.

eliecer696 commented 10 months ago

-> Search for "Environment Variables" then select "Edit the system environment variables" -> Click the Environment Variables button -> Under System Variables, click New or if you have yet the name JAVA_HOME you can modity it.

thank a lot manny manged to get it working i also had to tweak the build.gradel and it worked like a charm

lele25811 commented 10 months ago

-> Search for "Environment Variables" then select "Edit the system environment variables" -> Click the Environment Variables button -> Under System Variables, click New or if you have yet the name JAVA_HOME you can modity it.

thank a lot manny manged to get it working i also had to tweak the build.gradel and it worked like a charm

If you have solved the problem, I recommend closing the issue :)