Wabbajackalope
Member
Greetings,
the following document is a follow on with a few notes to the main android tutorial, this is specifically about how to get the android module working from scratch and i didnt address many other things you need to know about that are in the tutorial (like what the keystore is which is something you do need to know but does not require setting up anything outside GMS).
this is designed to work on a windows 7 + or above operating system at 64-bits, it will work on 32 bits as well but i just have never used it for compiling an apk
please read the official tutorials before using these notes
here is the android tutorial
http://help.yoyogames.com/hc/en-us/articles/216753498-GameMaker-Studio-Android-SDK-and-NDK-setup-
make note of the version support page on the help desk
http://help.yoyogames.com/hc/en-us/articles/216753748-SDK-Version-Support
you will now need to download and install a series of files onto your computer. make note that the 32 bit versions of these programs should work regardless of outcome but in a few situations, if you have a 64 but computer, some of the programs can be bumped up and this can assist you in various facets (like to increase the dump cache in java so as to speed up compiling times). i have not tested all combinations but i will make note where i have been successful with 64 bit.
please download the following files and install them in the same order that they are listed
GMS 1.4.1763:
http://store.yoyogames.com/downloads/gm-studio/GMStudio-Installer-1.4.1763.exe
JDK:
jdk-8u102-windows-i586.exe (32bit) OR jdk-8u102-windows-x64.exe (64 bit)
both versions will work i recently just tested and confirmed this.
http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html
(please note that Java might ask you to login/create a login before you download this file, i believe you can use what ever information you wish.)
SDK:
tools_r25.2.5-windows.zip
https://dl.google.com/android/repository/tools_r25.2.5-windows.zip
NDK:
android-ndk-r12b-windows-x86.zip
you wont find this directly displayed on the NDK information page but it is in the google repository
https://dl.google.com/android/repository/android-ndk-r12b-windows-x86.zip
take 'android-ndk-r12b-windows-x86.zip', unpack it, and put the contents in a file at C:\android-ndk-r12b
take 'tools_r25.2.5-windows.zip', unpack it, and put it in a file at c:/android-sdk and run "android.bat" (you might need to run as administrator), this will open the SDK Manager.
Now for one of the huge stumbling blocks, while downloading the build tools, API and extras you will not be able to find a support library (as of today) even if you tick the obsolete box. also the suggestions of finding the local maven library also wont turn up anything else useful, i believe it was merged into one of the other files and ill talk about this more later.
you want to download (as of May 1, 2017):
Android SDK tools REV 25.2.5
Android SDK Platform-tools REV 25.0.5
Android SDK Build-tools REV 25.0.2
inside the 'Android 7.1.1 (API 25)' folder
SDK Platform REV 3
Sources for Android SDK REV 1
inside 'Extras' folder
Amazon Fire Phone Build Tools REV 1
Kindle Fire USB Driver REV 8
Android Support Repository REV 47
Google Play Services REV 38
Google Repository REV 47
Google Play Licensing Library REV 1
Google Play Billing Library REV 5
Google USB Driver REV 11
And at the bottom of the list, already installed, should be 'Tools R25.2.5 Windows REV 25.2.5'
if you need access to amazon related file please input the following at 'tools>manage add-on sites>user defined sites'
"https://s3.amazonaws.com/android-sdk-manager/redist/addon.xml"
now once you have all the above installed, go inside of game maker studio and please be sure that in 'File>Preferences>Android>SDK' that you have the following locations lined up:
Android SDK Location : 'C:\android-sdk'
Android NDK Location : 'C:\android-ndk-r12b'
Java JDK Location :
(32 bit) 'C:\Program Files (x86)\Java\jdk1.8.0_102'
(64 bit) 'C:\Program Files\Java\jdk1.8.0_102'
and that you check the two boxes direction below the locations to confirm the status of all the programs you just installed.
Finally, go to 'Global Game Settings>Android/Fire' and fill out the following information
Target SDK : 25
Min SDK : 17
Compile SDK : 25
Build Tools : 25.0.2
Support Lib : 25.1.0
i have not covered how to link up an android device to your machine or how to create a keystore, please look at the original tutorial for information on that, otherwise if you followed all of these steps (and have the licenses needed) then you should be able to fully compile any game as needed into an apk file to play on an android device.
Im not entirely sure where the support lib is now stored but it has been updated from its old REV of 23.2.1, you can still use it at that number but you have to reduce the target sdk and compile sdk to 23 to get it to work (after downloading the applicable API 23 files). if you use all the numbers i posted above this should not be a problem and do not need to download any additional files.
if you have any questions please let me know. i sincerely hope this helps someone have a smooth ride getting their system up and running.
have a great day.
the following document is a follow on with a few notes to the main android tutorial, this is specifically about how to get the android module working from scratch and i didnt address many other things you need to know about that are in the tutorial (like what the keystore is which is something you do need to know but does not require setting up anything outside GMS).
this is designed to work on a windows 7 + or above operating system at 64-bits, it will work on 32 bits as well but i just have never used it for compiling an apk
please read the official tutorials before using these notes
here is the android tutorial
http://help.yoyogames.com/hc/en-us/articles/216753498-GameMaker-Studio-Android-SDK-and-NDK-setup-
make note of the version support page on the help desk
http://help.yoyogames.com/hc/en-us/articles/216753748-SDK-Version-Support
you will now need to download and install a series of files onto your computer. make note that the 32 bit versions of these programs should work regardless of outcome but in a few situations, if you have a 64 but computer, some of the programs can be bumped up and this can assist you in various facets (like to increase the dump cache in java so as to speed up compiling times). i have not tested all combinations but i will make note where i have been successful with 64 bit.
please download the following files and install them in the same order that they are listed
GMS 1.4.1763:
http://store.yoyogames.com/downloads/gm-studio/GMStudio-Installer-1.4.1763.exe
JDK:
jdk-8u102-windows-i586.exe (32bit) OR jdk-8u102-windows-x64.exe (64 bit)
both versions will work i recently just tested and confirmed this.
http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html
(please note that Java might ask you to login/create a login before you download this file, i believe you can use what ever information you wish.)
SDK:
tools_r25.2.5-windows.zip
https://dl.google.com/android/repository/tools_r25.2.5-windows.zip
NDK:
android-ndk-r12b-windows-x86.zip
you wont find this directly displayed on the NDK information page but it is in the google repository
https://dl.google.com/android/repository/android-ndk-r12b-windows-x86.zip
take 'android-ndk-r12b-windows-x86.zip', unpack it, and put the contents in a file at C:\android-ndk-r12b
take 'tools_r25.2.5-windows.zip', unpack it, and put it in a file at c:/android-sdk and run "android.bat" (you might need to run as administrator), this will open the SDK Manager.
Now for one of the huge stumbling blocks, while downloading the build tools, API and extras you will not be able to find a support library (as of today) even if you tick the obsolete box. also the suggestions of finding the local maven library also wont turn up anything else useful, i believe it was merged into one of the other files and ill talk about this more later.
you want to download (as of May 1, 2017):
Android SDK tools REV 25.2.5
Android SDK Platform-tools REV 25.0.5
Android SDK Build-tools REV 25.0.2
inside the 'Android 7.1.1 (API 25)' folder
SDK Platform REV 3
Sources for Android SDK REV 1
inside 'Extras' folder
Amazon Fire Phone Build Tools REV 1
Kindle Fire USB Driver REV 8
Android Support Repository REV 47
Google Play Services REV 38
Google Repository REV 47
Google Play Licensing Library REV 1
Google Play Billing Library REV 5
Google USB Driver REV 11
And at the bottom of the list, already installed, should be 'Tools R25.2.5 Windows REV 25.2.5'
if you need access to amazon related file please input the following at 'tools>manage add-on sites>user defined sites'
"https://s3.amazonaws.com/android-sdk-manager/redist/addon.xml"
now once you have all the above installed, go inside of game maker studio and please be sure that in 'File>Preferences>Android>SDK' that you have the following locations lined up:
Android SDK Location : 'C:\android-sdk'
Android NDK Location : 'C:\android-ndk-r12b'
Java JDK Location :
(32 bit) 'C:\Program Files (x86)\Java\jdk1.8.0_102'
(64 bit) 'C:\Program Files\Java\jdk1.8.0_102'
and that you check the two boxes direction below the locations to confirm the status of all the programs you just installed.
Finally, go to 'Global Game Settings>Android/Fire' and fill out the following information
Target SDK : 25
Min SDK : 17
Compile SDK : 25
Build Tools : 25.0.2
Support Lib : 25.1.0
i have not covered how to link up an android device to your machine or how to create a keystore, please look at the original tutorial for information on that, otherwise if you followed all of these steps (and have the licenses needed) then you should be able to fully compile any game as needed into an apk file to play on an android device.
Im not entirely sure where the support lib is now stored but it has been updated from its old REV of 23.2.1, you can still use it at that number but you have to reduce the target sdk and compile sdk to 23 to get it to work (after downloading the applicable API 23 files). if you use all the numbers i posted above this should not be a problem and do not need to download any additional files.
if you have any questions please let me know. i sincerely hope this helps someone have a smooth ride getting their system up and running.
have a great day.
Last edited: