• 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 Problem,export to android

M

Marlon_Jack

Guest
Hello,
I have a problem for exporting my game to Android.
Can you help me with this message ;

Saving project to: C:\Users\Raiden\Documents\GameMakerStudio2\The Last Forest\The Last Forest.yyp
"cmd" /c subst Z: "C:\Users\Raiden\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE"

elapsed time 00:00:00.0468771s for command "cmd" /c subst Z: "C:\Users\Raiden\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE" started at 04/28/2020 23:58:04
"cmd" /c subst Y: "C:\Users\Raiden\AppData\Local\GameMakerStudio2\GMS2TEMP"

elapsed time 00:00:00.0312255s for command "cmd" /c subst Y: "C:\Users\Raiden\AppData\Local\GameMakerStudio2\GMS2TEMP" started at 04/28/2020 23:58:04
"cmd" /c subst X: "C:\ProgramData\GameMakerStudio2\Cache\runtimes\runtime-2.2.5.378"

elapsed time 00:00:00.0312512s for command "cmd" /c subst X: "C:\ProgramData\GameMakerStudio2\Cache\runtimes\runtime-2.2.5.378" started at 04/28/2020 23:58:04
"C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.2.5.378/bin/Igor.exe" -j=8 -options="C:\Users\Raiden\AppData\Local\GameMakerStudio2\GMS2TEMP\build.bff" -v -- Android Package

Loaded Macros from C:\Users\Raiden\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE\The_Last_F_589FB290_7BC3077E\macros.json
Options: X:/bin\platform_setting_defaults.json
Options: C:\Users\Raiden\AppData\Roaming/GameMakerStudio2\marlon.gourdouze_2217289\local_settings.json
Options: C:\Users\Raiden\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE\The_Last_F_589FB290_7BC3077E\targetoptions.json
X://bin/GMAssetCompiler.exe /c /zpex /iv=0 /rv=0 /bv=0 /j=8 /gn="The Last Forest" /td="Y:/" /cd="Z:/The_Last_F_589FB290_7BC3077E" /zpuf="C:\Users\Raiden\AppData\Roaming/GameMakerStudio2\marlon.gourdouze_2217289" /m=llvm-android /tgt=8 /llvmSource="X://yyc/" /nodnd /cfg="default" /fU="Z:/The_Last_F_589FB290_7BC3077E\functionsUsed.txt" /o="Y:/The_Last_Forest_4E3CB48B_YYC" /optionsini="Y:/The_Last_Forest_4E3CB48B_YYC\options.ini" /baseproject="X:/BaseProject\BaseProject.yyp" "C:\Users\Raiden\Documents\GameMakerStudio2\The Last Forest\The Last Forest.yyp" /preprocess="Z:/The_Last_F_589FB290_7BC3077E"
Reading project file....C:\Users\Raiden\Documents\GameMakerStudio2\The Last Forest
Reading project file....X:\BaseProject
Reading config delta 'C:\Users\Raiden\Documents\GameMakerStudio2\The Last Forest\options\main\inherited\options_main.inherited.yy'
finished.


X://bin/GMAssetCompiler.exe DONE (0)
Release build
Options: Z:/The_Last_F_589FB290_7BC3077E\ExtensionOptions.json
PlatformOptions
Options: Z:/The_Last_F_589FB290_7BC3077E\PlatformOptions.json
Options: Z:/The_Last_F_589FB290_7BC3077E\MainOptions.json
displayname
hostname
runtime
OptionsIni
PlatformOptions
X://bin/GMAssetCompiler.exe /c /zpex /iv=0 /rv=0 /bv=0 /j=8 /gn="The Last Forest" /td="Y:/" /cd="Z:/The_Last_F_589FB290_7BC3077E" /zpuf="C:\Users\Raiden\AppData\Roaming/GameMakerStudio2\marlon.gourdouze_2217289" /m=llvm-android /tgt=8 /llvmSource="X://yyc/" /nodnd /cfg="default" /fU="Z:/The_Last_F_589FB290_7BC3077E\functionsUsed.txt" /o="Y:/The_Last_Forest_4E3CB48B_YYC" /optionsini="Y:/The_Last_Forest_4E3CB48B_YYC\options.ini" /baseproject="X:/BaseProject\BaseProject.yyp" "C:\Users\Raiden\Documents\GameMakerStudio2\The Last Forest\The Last Forest.yyp" /arch=54 /bt=exe /rt=yyc
Reading project file....C:\Users\Raiden\Documents\GameMakerStudio2\The Last Forest
Reading project file....X:\BaseProject
Reading config delta 'C:\Users\Raiden\Documents\GameMakerStudio2\The Last Forest\options\main\inherited\options_main.inherited.yy'
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.
finished.
collapsing enums.
Error : gml_Object_omusicintro_Step_0(5) : using uninitialised variable 'soundintro'
Error : gml_Object_fireballbossfin1_Step_0(17) : using uninitialised variable 'explosionfireballbossfin'
Error : gml_Object_fireballbossfin_Step_0(17) : using uninitialised variable 'explosionfireballbossfin'
Final Compile...finished.
Stats : GMA : Elapsed=1036,8229
Stats : GMA : sp=348,au=23,bk=0,pt=1,sc=0,sh=1,fo=2,tl=0,ob=439,ro=74,da=0,ex=2,ma=4369,fm=0x4000B10428E80024


X://bin/GMAssetCompiler.exe exited with non-zero status (1)
elapsed time 00:00:05.9332071s for command "C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.2.5.378/bin/Igor.exe" -j=8 -options="C:\Users\Raiden\AppData\Local\GameMakerStudio2\GMS2TEMP\build.bff" -v -- Android Package started at 04/28/2020 23:58:04
"cmd" /c subst Z: /d

elapsed time 00:00:00.0420789s for command "cmd" /c subst Z: /d started at 04/28/2020 23:58:10
"cmd" /c subst Y: /d

elapsed time 00:00:00.0280020s for command "cmd" /c subst Y: /d started at 04/28/2020 23:58:10
"cmd" /c subst X: /d

elapsed time 00:00:00.0239968s for command "cmd" /c subst X: /d started at 04/28/2020 23:58:10
FAILED: Package Program Complete
For the details of why this build failed, please review the whole log above and also see your Compile Errors window.

Thank you !!
 

stevepdp

Member
Error : gml_Object_omusicintro_Step_0(5) : using uninitialised variable 'soundintro'
Error : gml_Object_fireballbossfin1_Step_0(17) : using uninitialised variable 'explosionfireballbossfin'
Error : gml_Object_fireballbossfin_Step_0(17) : using uninitialised variable 'explosionfireballbossfin'
It looks like you've got errors in some of your Step events.

Check these objects and initialise these variables before using them.

Is your Android stack installed and set up correctly too? One thing I like to do to verify is start an empty GameMaker Studio 2 project to see if it builds. Helps me to identify whether it's the toolchain or my own code that's not working.

Hope this is helpful.
 
M

Marlon_Jack

Guest
Thanks for these informations, I corrected these errors but now I have a another problem...

> Task :com.company.game:processReleaseResources

> Task :com.company.game:compileReleaseJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

> Task :com.company.game:compileReleaseSources
> Task :com.company.game:lintVitalRelease
> Task :com.company.game:checkReleaseDuplicateClasses
> Task :com.company.game:transformClassesWithDexBuilderForRelease
> Task :com.company.game:transformClassesWithMultidexlistForRelease
> Task :com.company.game:mergeDexRelease
> Task :com.company.game:mergeReleaseShaders
> Task :com.company.game:compileReleaseShaders
> Task :com.company.game:generateReleaseAssets
> Task :com.company.game:mergeReleaseAssets
> Task :com.company.game:validateSigningRelease
> Task :com.company.game:signingConfigWriterRelease
> Task :com.company.game:mergeReleaseJniLibFolders
> Task :com.company.game:transformNativeLibsWithMergeJniLibsForRelease
> Task :com.company.game:processReleaseJavaRes NO-SOURCE
> Task :com.company.game:transformResourcesWithMergeJavaResForRelease
> Task :com.company.game:packageRelease FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':com.company.game:packageRelease'.
> 5 exceptions were raised by workers:
java.lang.RuntimeException: java.lang.RuntimeException: com.android.ide.common.signing.KeytoolException: Failed to read key MarlonJack from store "C:\Users\Raiden\Desktop\CAPTURETLF\The Last Forest test1.keystore": No key with alias 'MarlonJack' found in keystore C:\Users\Raiden\Desktop\CAPTURETLF\The Last Forest test1.keystore
java.lang.RuntimeException: java.lang.RuntimeException: com.android.ide.common.signing.KeytoolException: Failed to read key MarlonJack from store "C:\Users\Raiden\Desktop\CAPTURETLF\The Last Forest test1.keystore": No key with alias 'MarlonJack' found in keystore C:\Users\Raiden\Desktop\CAPTURETLF\The Last Forest test1.keystore
java.lang.RuntimeException: java.lang.RuntimeException: com.android.ide.common.signing.KeytoolException: Failed to read key MarlonJack from store "C:\Users\Raiden\Desktop\CAPTURETLF\The Last Forest test1.keystore": No key with alias 'MarlonJack' found in keystore C:\Users\Raiden\Desktop\CAPTURETLF\The Last Forest test1.keystore
java.lang.RuntimeException: java.lang.RuntimeException: com.android.ide.common.signing.KeytoolException: Failed to read key MarlonJack from store "C:\Users\Raiden\Desktop\CAPTURETLF\The Last Forest test1.keystore": No key with alias 'MarlonJack' found in keystore C:\Users\Raiden\Desktop\CAPTURETLF\The Last Forest test1.keystore
java.lang.RuntimeException: java.lang.RuntimeException: com.android.ide.common.signing.KeytoolException: Failed to read key MarlonJack from store "C:\Users\Raiden\Desktop\CAPTURETLF\The Last Forest test1.keystore": No key with alias 'MarlonJack' found in keystore C:\Users\Raiden\Desktop\CAPTURETLF\The Last Forest test1.keystore


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 29m 30s
50 actionable tasks: 50 executed


C:\WINDOWS\system32\cmd.exe exited with non-zero status (1)
 

stevepdp

Member
Code:
java.lang.RuntimeException: java.lang.RuntimeException: com.android.ide.common.signing.KeytoolException: Failed to read key MarlonJack from store "C:\Users\Raiden\Desktop\CAPTURETLF\The Last Forest test1.keystore": No key with alias 'MarlonJack' found in keystore C:\Users\Raiden\Desktop\CAPTURETLF\The Last Forest test1.keystore
It looks like your Keystore is incorrectly set up. You need this to be correct so that the build tools can codesign your release.

Have a read of this documentation. Particularly the section "Set Up GMS2's Preferences" where you set up a Keystore for code signing.

Once it's working, make several backups of the file and password too. You really don't want to lose it.
 
M

Marlon_Jack

Guest
thanks for your help again !

I manage to export my game to Android

but the virtual keys do not work .... do you have any tips ?

Thanks again
 
Top