1. Hey! Guest! The 36th GMC Jam will take place between February 27th, 12:00 UTC - March 2nd, 12:00 UTC. Why not join in! Click here to find out more!
    Dismiss Notice
  2. NOTICE: We will be applying a Xenforo update on Tuesday 25th of February. This means that from approximately 10:00 to 14:00 BST the forums will be offline (or possibly longer). Sorry for the inconvenience! Official Announcement here.

[SOLVED] Android export fail, Gradle not found?

Discussion in 'Legacy GameMaker Community Tech Support' started by Jaren Nelson, Aug 4, 2018.

  1. Jaren Nelson

    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: Aug 4, 2018
  2. FrostyCat

    FrostyCat Member

    Joined:
    Jun 26, 2016
    Posts:
    4,878
    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.
     
  3. Jaren Nelson

    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: Aug 5, 2018

Share This Page