Sunday 24 July 2016

How to fix troubleshooting with new version of Game Maker Studio

Hi guys

Sorry for the delays, for the last few weeks I've been experimenting with new version of Game Maker Studio
Truth is, it's not new, but because I was saving for the Android Export as well as Professional version, so the first choice is to use cracked version.



Since the cracked version was put to the halt, and Yoyo Games came up with a 50% discount, so I bought it ( both the license and Android Export costs $250 )

OK, building new APK in this new version is a pain in the a**, and $250 is quite a big sum of money to me, but at least you can do the following :

  • Buy extensions that are only available to those with Android Export, such as this one ( Samsung Store Extension)
  • Export to Amazon : remove the built-in builder, so you can submit new app to Amazon without problem.
  • Receive new updates from Yoyo : right now there's an error relates to some "lib" stuff, Yoyo has been working on the solution to solve it. By September, all APK with "lib" error are not allowed  on Google Play, purchased version is the only way to prevent staying behind.
Now, back to our problem with new Game Maker Studio

The major change in this version, is that all the built-in Google Service like Ads and Google Play are removed, so you have to use extension, which provided by Yoyo.

Second, building an APK needs some notice, which I'm going to show you here, through the errors you might encounter.

NOTE :  This is my solution to the error, it works well with me. So, if you follow my instruction and still can't fix the error, please use yoyo forums for assistance and post your solution here in the comment, thank you.




Frist thing first, you need to install the following SDK, following this list


Android SDK
    Build Tools: 24 (For the Build Tools, some says stick with 23.x.x, rather than going to 24 or 25)
    APIs Required: 23 (However add in whatever your extensions require too)
    Android  Support Library: 23.2.1 
    Android Support Repository: 34


Android NDK

    Stable/Beta: 10c ( I haven't downloaded it manually, for the first time I compiled APK in new GMS, it goes under some downloading process, maybe it does included )
    Early Access: 12b

Java JDK:

    Stable/Beta: 1.7 (32 Bit) ( same with NDK, never downloaded it manually, note here, you may want to download it if none of my solutions works)
    Early Access: 1.8 (64 Bit)



Note
Check the "Obsolete" option to see Android  Support Library. You gonna need this to build.


1. Unable To Build Android-failed to find Build Tools revision 23.0.1

Make sure your build tool and library matches
Go to Global Settings -> Android/Fire -> General
Make sure you type the version for Build Tools and Support Lib exactly, else you will see that error.


 


Here's my config for the Target SDK, Min SDK and Compile SDK




2. Lint found errors in the project; aborting build.
Fix the issues identified by lint, or add the following to your build script to proceed with errors: ...
android { lintOptions { abortOnError false }
}


If you see this error, simply remove old Google Ads Extension ( if you have any ).

Got new one from Yoyo Marketplace, or get the demo from Demo Feed.


3. processArmeabi-v7aReleaseResources

Solution lies in : Asset Cache and Backup Directory, make it shorter ( create another folder in your hard drive instead of default location provided by Yoyo )

You can find this window in File -> Preferences

 

4. common_signin_btn_icon_disabled_focus_dark.9.png ERROR: Unable to open PNG file

Set the path for built apk to shorter one. When you build APK, GMS may ask you where to save the APK file, pick a short path like D:/ , E:/ instead.

Reference : https://github.com/googlesamples/android-XYZTouristAttractions/issues/2

5.What went wrong:
Execution failed for task ':whatever:compileReleaseJavaWithJavac'.  

Remove Google Play Service Extension from your Game Maker Studio ( and also Flurry Analytics if any ).
At the time of this post, these two extensions are the cause of problem, maybe because they're outdated

Clean your project asset ( you will find this button, it  looks like a broom, near "Run the Game" button )

Reference : https://forum.yoyogames.com/index.php?threads/android-compile-error.836/

6.Error : Execution failed for task 'transformClassesWithMultidexlistForRelease'.  

Update your Java Developer Kit
Visit this link : Download JDK

Reference : on YoyoGames

7.Error : Execution failed for task 'transformClassesWithJarMergingForRelease'.

This error happens when you use UnityAds Extension by Netox ( a great extension by the way ) and Google Play Service Extension from yoyogames.

These two extensions call gp-service, which leads to it being called twice.

Solution :
Right click the Unity Ads Extension and select 'Open In Explorer'.
Navigate to 'UnityAds\AndroidSource\libs' and remove google-play-services.jar.
(If it's not in the 'libs' folder then it will be within the 'SDK' folders subdirectories)

Reference : on YoyoGames

1 comment:

  1. 5.What went wrong:
    Execution failed for task ':whatever:compileReleaseJavaWithJavac'.
    I JUST FOLLOWED THE SOLUTION BUT I HAVE NO Google Play Service Extension.. What to do now?

    ReplyDelete