• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

[SOLVED] Android export fail, Gradle not found?

J

Jaren Nelson

Guest
I have been changing my GM setup to a new computer but am completely unable to make this setup export Android.

I am running GM Studio 1.4.1804.

Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain

Is the Gradle something I need to download or install? What file location would I use? From what I can tell GMS would normally do that itself? I am really at a loss.

I am using:
Build tools: 24
Support Lib 23.2.1
Target SDK 16
Min SDK 14
Compile SDK 23

JAVA 1.8.0_162 (But have attempted multiple)
NDK r12

But I have tried many combinations.


Create started: 3:16:27 PM
"C:\Users\Jaren & Lizz\AppData\Roaming\GameMaker-Studio\GMAssetCompiler.exe" /fU="C:\Users\Jaren & Lizz\AppData\Local\gm_ttt_15670\a81462.txt" /c /m=android /config="Default" /tgt=8 /obob=True /obpp=False /obru=True /obes=False /i=3 /j=16 /cvm /tp=1024 /mv=1 /iv=0 /rv=0 /bv=1804 /gn="Project2" /td="C:\Users\Jaren & Lizz\AppData\Local" /cd="C:\Users\Jaren & Lizz\Documents\GameMaker\Cache" /sh=True /dbgp="6502" /hip="192.168.1.17" /hprt="51268" /optionsini="C:\Users\Jaren & Lizz\AppData\Local\gm_ttt_15670\gm_ttt_70443\Project2.ini" /o="C:\Users\Jaren & Lizz\AppData\Local\gm_ttt_15670\gm_ttt_70443" "D:\GameMaker-Studio 1.4\GameMaker\Project2.gmx\Project2.project.gmx"
Reading project file....finished.
Compile Constants...finished.
Remove DnD...finished.
Compile Scripts...finished.
Compile Objects...finished.
Compile Timelines...finished.
Compile Triggers...finished.
Compile Rooms...finished.
Compile Extensions...finished.
Global scripts...finished.
Final Compile...finished.
Saving IFF file... C:\Users\Jaren & Lizz\AppData\Local\gm_ttt_15670\gm_ttt_70443\Project2.droid
Writing Chunk... GEN8
Writing Chunk... OPTN
Writing Chunk... LANG
Writing Chunk... EXTN
Writing Chunk... SOND
Writing Chunk... AGRP
Writing Chunk... SPRT
Writing Chunk... BGND
Writing Chunk... PATH
Writing Chunk... SCPT
Writing Chunk... GLOB
Writing Chunk... SHDR
Writing Chunk... FONT
Writing Chunk... TMLN
Writing Chunk... OBJT
Writing Chunk... ROOM
Writing Chunk... DAFL
Writing Chunk... TPAGE
Writing Chunk... CODE
Writing Chunk... VARI
Writing Chunk... FUNC
Writing Chunk... STRG
Writing Chunk... TXTR
Writing Chunk... AUDO
Writing Chunk... SCPT
Writing Chunk... DBGI
Writing Chunk... INST
Writing Chunk... LOCL
Writing Chunk... STRG
Stats : GMA : Elapsed=588.1499
Stats : GMA : sp=0,au=0,bk=0,pt=0,sc=0,sh=0,fo=0,tl=0,ob=0,ro=1,da=0,ex=0,ma=2,fm=0x0
cmd /c "subst Z: "C:\Users\Jaren & Lizz\Documents\GameMaker\Cache\Project2\Android\Default" && Z: && cd \com.companyname.Project2 && "C:\Users\Jaren & Lizz\AppData\Roaming\GameMaker-Studio\Android\runner\gradle\gradlew" assembleRelease "
'Lizz\AppData\Roaming\GameMaker-Studio\Android\runner\gradle\' is not recognized as an internal or external command,
operable program or batch file.
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
cmd /c "subst /d Z:"
Create finished: 3:16:29 PM

Writing Chunk... STRG
Stats : GMA : Elapsed=588.1499
Stats : GMA : sp=0,au=0,bk=0,pt=0,sc=0,sh=0,fo=0,tl=0,ob=0,ro=1,da=0,ex=0,ma=2,fm=0x0
cmd /c "subst Z: "C:\Users\Jaren & Lizz\Documents\GameMaker\Cache\Project2\Android\Default" && Z: && cd \com.companyname.Project2 && "C:\Users\Jaren & Lizz\AppData\Roaming\GameMaker-Studio\Android\runner\gradle\gradlew" assembleRelease "
'Lizz\AppData\Roaming\GameMaker-Studio\Android\runner\gradle\' is not recognized as an internal or external command,
operable program or batch file.
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
cmd /c "subst /d Z:"
Create finished: 3:16:29 PM

I followed every step listed for the android export section of the website as best I could, but just cant figure out what to do about this. If anyone has any insight it would be very appreciated. Thanks!
 
Last edited by a moderator:

FrostyCat

Redemption Seeker
Look at this part of your error message:
Code:
'Lizz\AppData\Roaming\GameMaker-Studio\Android\runner\gradle\' is not recognized as an internal or external command,
operable program or batch file.
The command line for building is choking on the & character in the path to your GMS compiler, which has a special meaning in batch script. You need to set up GMS in a different account with an alphanumeric, ASCII-only name. Work off an account named Developer, if you will.

There's a reason why programmers are notably minimalistic when it comes to naming their files, directories and accounts. Fancy names increase the probability of conflicting with characters having special meanings in command-line interfaces.
 
J

Jaren Nelson

Guest
That makes sense. I did notice that but was not able to connect the dots. Thanks!

Edit: Added a new user with a simplified name and it worked perfectly. Thanks for the help.
 
Last edited by a moderator:
Top