Android
Go to
C:\Program Files\Java\jdk.7.0_21\bin
Keystroke
keytool -genkey -v -keystore my-release-key.keystore -alias GAMENAME -keyalg RSA -keysize 2048 -validity 10000
Sign
jarsigner -verbose -sigalg MD5withRSA -digestalg SHA1 -keystore my-release-key.keystore mr_release.apk mr_xgd
Align (Located in Android->Tools)
zipalign -v 4 mr_release.apk mr.apk
https://code.google.com/p/apk-signer/
Unity Plugin
https://github.com/playgameservices/play-games-plugin-for-unity
https://www.youtube.com/watch?v=XmHXl-UFTqM
Admob
https://developers.google.com/admob/games?hl=en#unity
Compile issues
Unable to merge android manifest
Make sure minSdkVersion And targetSdkVersion in all AndroidManifest.xml files
Unable to convert classes into dex format
Check for duplicate jar files, eg: google-play-services.jar
If you get returnCode 13, make sure the SDK is updated
https://www.youtube.com/watch?v=q5T98X3EawA
Google Developer Account
Setup
Install Java JDK
http://www.oracle.com/technetwork/java/javase/downloads/index.html
Setup References
http://help.yoyogames.com/hc/en-us/articles/216753498-GameMaker-Studio-Android-SDK-and-NDK-setup-
Record a video
adb shell screenrecord /sdcard/VIDEO.mp4
Compile Issues
Problem:
Main manifest has
Solution:
Make sure the SDK level is setup to the highest required, eg: 15
Open all the Android Manifest files, change the miSdkVersion to 15
Problem:
Unable to convert classes into dex format
Solution
Check if there are more than one (android-support-v4) or support-v4.aar files
Check if there are more than one support-annotations-24.0.0 or annotations.arr files
Create a plugin which:
Gets all the .aar files in a project
Gets all the .jar files in a project
Gets all the .xml files in a project
Check the minSdkVersion
Check the project’s Android SDK level
Troubleshooting
I want to test Google Play Services locally without uploading the APk each time.
Copy Upload certificate to Google Cloud API
I can see other players scores, but can see my own, or submit scores:
Setting in User’s Google Play Services account: Lets others see your player activity
https://github.com/playgameservices/play-games-plugin-for-unity/issues/2542