• 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.

Android Builds are failing, no matter what I do.

Z

Zuda

Guest
Let me just start out by mentioning how angry it makes me that I paid $200 for a piece of software that doesn't even work. I'm about mad enough to take YoYoGames to court for a refund. There were never ANY problems of this nature before they got their hands on it. Hopefully somebody here can help me so I can actually use this junk.

I made a test application. There is barely ANY code in it. All it does is create a logo object in the room creation code, and draws it at 0,0. Tapping the screen ends the game.

When I try to compile, I get this long story:

Code:
"cmd"  /c subst Z: "C:\Users\T430\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE"

elapsed time 00:00:00.0250014s for command "cmd" /c subst Z: "C:\Users\T430\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE" started at 09/27/2020 15:32:17
"cmd"  /c subst Y: "C:\Users\T430\AppData\Local\GameMakerStudio2\GMS2TEMP"

elapsed time 00:00:00.0260015s for command "cmd" /c subst Y: "C:\Users\T430\AppData\Local\GameMakerStudio2\GMS2TEMP" started at 09/27/2020 15:32:18
"cmd"  /c subst X: "C:\ProgramData\GameMakerStudio2\Cache\runtimes\runtime-2.3.0.401"

elapsed time 00:00:00.0230013s for command "cmd" /c subst X: "C:\ProgramData\GameMakerStudio2\Cache\runtimes\runtime-2.3.0.401" started at 09/27/2020 15:32:18
"C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.3.0.401/bin/Igor.exe"  -j=8 -options="C:\Users\T430\AppData\Local\GameMakerStudio2\GMS2TEMP\build.bff" -v -- Android Run

Loaded Macros from C:\Users\T430\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE\TEST_ANDRO_442DA5D9_3ED5417C\macros.json
Options: X:/bin\platform_setting_defaults.json
Options: C:\Users\T430\AppData\Roaming/GameMakerStudio2\chrissnook06_2411442\local_settings.json
Options: C:\Users\T430\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE\TEST_ANDRO_442DA5D9_3ED5417C\targetoptions.json
Setting up the Asset compiler
X://bin/GMAssetCompiler.exe  /c /mv=1 /zpex /iv=0 /rv=0 /bv=0 /j=8  /gn="TEST ANDROID" /td="Y:/" /cd="Z:/TEST_ANDRO_442DA5D9_3ED5417C" /zpuf="C:\Users\T430\AppData\Roaming/GameMakerStudio2\chrissnook06_2411442" /m=llvm-android /tgt=8 /llvmSource="X://yyc/"  /nodnd /cfg="Default" /fU="Z:/TEST_ANDRO_442DA5D9_3ED5417C\functionsUsed.txt" /o="Y:/TEST_ANDROID_394948D5_YYC" /optionsini="Y:/TEST_ANDROID_394948D5_YYC\options.ini" /baseproject="X:/BaseProject\BaseProject.yyp" "C:\Users\T430\Documents\GameMakerStudio2\TEST ANDROID\TEST ANDROID.yyp" /preprocess="Z:/TEST_ANDRO_442DA5D9_3ED5417C"
Found Project Format 2
ProjectFileWatcher:StartWatching:C:\Users\T430\Documents\GameMakerStudio2\TEST ANDROID
Started: 9/27/2020 3:32:19 PM
Finished: 9/27/2020 3:32:20 PM
Diff: 00:00:01.0460598
Loaded Project: TEST ANDROID
finished.
Release build
Options: Z:/TEST_ANDRO_442DA5D9_3ED5417C\ExtensionOptions.json
PlatformOptions
Options: Z:/TEST_ANDRO_442DA5D9_3ED5417C\PlatformOptions.json
Options: Z:/TEST_ANDRO_442DA5D9_3ED5417C\MainOptions.json
displayname
hostname
runtime
OptionsIni
PlatformOptions
X://bin/GMAssetCompiler.exe  /c /mv=1 /zpex /iv=0 /rv=0 /bv=0 /j=8  /gn="TEST ANDROID" /td="Y:/" /cd="Z:/TEST_ANDRO_442DA5D9_3ED5417C" /zpuf="C:\Users\T430\AppData\Roaming/GameMakerStudio2\chrissnook06_2411442" /m=llvm-android /tgt=8 /llvmSource="X://yyc/"  /nodnd /cfg="Default" /fU="Z:/TEST_ANDRO_442DA5D9_3ED5417C\functionsUsed.txt" /o="Y:/TEST_ANDROID_394948D5_YYC" /optionsini="Y:/TEST_ANDROID_394948D5_YYC\options.ini" /baseproject="X:/BaseProject\BaseProject.yyp" "C:\Users\T430\Documents\GameMakerStudio2\TEST ANDROID\TEST ANDROID.yyp" /arch=2 /bt=exe /rt=yyc
Compile Constants...finished.
Remove DnD...finished.
Compile Scripts...finished.
Compile Rooms...finished.
Compile Objects...finished.
Compile Timelines...finished.
Compile Triggers...finished.
Compile Extensions...finished.
Global scripts...finished.
finished.
collapsing enums.
Final Compile...finished.
Writing Chunk... GEN8
option_game_speed=60
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... ACRV
Writing Chunk... SEQN
Writing Chunk... TAGS
Writing Chunk... ROOM
Writing Chunk... DAFL
Writing Chunk... EMBI
Writing Chunk... TPAGE
Texture Group - Default
Writing Chunk... TGIN
Writing Chunk... STRG
Writing Chunk... TXTR
0 Compressing texture... writing texture texture_0.png... 
Writing Chunk... AUDO
ClangExeLocation=C:\asdk\ndk\21.1.6352462\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe
Using NDKDir = C:\asdk\ndk\21.1.6352462
Using PlatformDir = C:\asdk\ndk\21.1.6352462\platforms\android-29
Using ARMToolChain = C:\asdk\ndk\21.1.6352462\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64
saving file Y:/TEST_ANDROID_394948D5_YYC\TEST ANDROID.droid
Z:\TEST_ANDRO_442DA5D9_3ED5417C\TEST ANDROID\Default\Scripts\llvm-android>start /w cmd.exe /v:on /c "call ndk.bat" 
Z:\TEST_ANDRO_442DA5D9_3ED5417C\TEST ANDROID\Default\Scripts\llvm-android>type ndk.out 
Android NDK: android-14 is unsupported. Using minimum supported version android-16.    
Android NDK: WARNING: APP_PLATFORM android-16 is higher than android:minSdkVersion 14 in ./AndroidManifest.xml. NDK binaries will *not* be compatible with devices older than android-16. See [URL]https://android.googlesource.com/platform/ndk/+/master/docs/user/common_problems.md[/URL] for more information.    
[armeabi-v7a] Install        : libc++_shared.so => Y:/TEST_ANDROID_394948D5_YYC/lib/armeabi-v7a/libc++_shared.so
[armeabi-v7a] Compile++ arm  : yoyo <= TEST_ANDROID.vars.cpp
[armeabi-v7a] SharedLibrary  : libyoyo.so
Z:\TEST_ANDRO_442DA5D9_3ED5417C\TEST ANDROID\Default\Scripts\llvm-android>set /p exitcode= 0<exitcode.txt 
Z:\TEST_ANDRO_442DA5D9_3ED5417C\TEST ANDROID\Default\Scripts\llvm-android>exit /b %exitcode%
Z:\TEST_ANDRO_442DA5D9_3ED5417C\TEST ANDROID\Default\Scripts\llvm-android>exit /b 2  
Z:\TEST_ANDRO_442DA5D9_3ED5417C\TEST ANDROID\Default\Scripts\llvm-android>
Stats : GMA : Elapsed=2238.1281
Stats : GMA : sp=1,au=0,bk=0,pt=0,sc=0,sh=0,fo=0,tl=0,ob=1,ro=1,da=0,ex=0,ma=2,fm=0x20010BA00000
X://bin/GMAssetCompiler.exe exited with non-zero status (2)
elapsed time 00:00:04.9852852s for command "C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.3.0.401/bin/Igor.exe" -j=8 -options="C:\Users\T430\AppData\Local\GameMakerStudio2\GMS2TEMP\build.bff" -v -- Android Run started at 09/27/2020 15:32:18
"cmd"  /c subst Z: /d

elapsed time 00:00:00.0240014s for command "cmd" /c subst Z: /d started at 09/27/2020 15:32:23
"cmd"  /c subst Y: /d

elapsed time 00:00:00.0250014s for command "cmd" /c subst Y: /d started at 09/27/2020 15:32:23
"cmd"  /c subst X: /d

elapsed time 00:00:00.0230013s for command "cmd" /c subst X: /d started at 09/27/2020 15:32:23
FAILED: Run Program Complete
For the details of why this build failed, please review the whole log above and also see your Compile Errors window.
And of course, when I go to compile errors, it says there are none to show. What am I missing? Did some necessary compiler files get wiped somehow? Because I don't even know where to start reading this junk. Suffice it to say that I am EXTREMELY disappointed with GMS2--but hoping that somebody here can help.
 

chirpy

Member
I understand your frustration; when software didn't work it should at least spit a reason about it (and it should be easily located!!).

That said, you may have to file a bug report using the GMS2 IDE, under Help > Report a Bug.
The official support staff may be able to tell you what's this exit code (2).
X://bin/GMAssetCompiler.exe exited with non-zero status (2)
 

Yal

šŸ§ *penguin noises*
GMC Elder
This is the actual error that causes the build to end:
X://bin/GMAssetCompiler.exe exited with non-zero status (2)
Not sure what could cause it, but one thing I noticed in the log is that it mixes forward and back slashes in the paths... not all OSes can handle that, even if it's supposed to be pretty standard these days.
zpuf="C:\Users\T430\AppData\Roaming/GameMakerStudio2\chrissnook06_2411442
Also, you're running a "release" build (instead of a VM test play build), do you have the entire Android build environment set up?
 

gkri

Member
Please post a screenshot from File -> Preferences -> Platform Settings -> Android (after blurring the key store if it is meant for production)
and another screenshot from Game Options - Android. We might be able to help you with more info about your settings.

Additionally make sure you have Android Studio and SDK install on short path (as close to the root as possible)
 

ensomari

Member
Same thing is happening to me and some other people on the forum with the new 2.3.0 release. Builds are compiling but fail at runtime almost immediately. I can't seem to downgrade the project either. I reinstalled 2.2.5 but GMS says it won't load my 2.3.0 project. It's very frustrating...
 
Top