• 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 Unable to Compile or test - Licensing glitch found

W

WWAZman

Guest
hello, I'm trying to compile for Android. Before updating my Gamemaker studio with the 8/30 update, I updated all my sdk's to make sure I would be compliant with the updates I've been missing.

I'm trying to update 10 of my games.. I started in alphabetical order and thankfully one of my smallest games, but when trying to test it I get the following errors:

Z:\library\src\com\google\android\vending\licensing\APKExpansionPolicy.java:20: error: package org.apache.http does not exist
import org.apache.http.NameValuePair;
^
Z:\library\src\com\google\android\vending\licensing\APKExpansionPolicy.java:21: error: package org.apache.http.client.utils does not exist
import org.apache.http.client.utils.URLEncodedUtils;
^
Z:\library\src\com\google\android\vending\licensing\ServerManagedPolicy.java:19: error: package org.apache.http does not exist
import org.apache.http.NameValuePair;
^
Z:\library\src\com\google\android\vending\licensing\ServerManagedPolicy.java:20: error: package org.apache.http.client.utils does not exist
import org.apache.http.client.utils.URLEncodedUtils;
^
Z:\library\src\com\google\android\vending\licensing\APKExpansionPolicy.java:382: error: cannot find symbol
List<NameValuePair> extraList = URLEncodedUtils.parse(rawExtras, "UTF-8");
^
symbol: class NameValuePair
location: class APKExpansionPolicy
Z:\library\src\com\google\android\vending\licensing\APKExpansionPolicy.java:382: error: cannot find symbol
List<NameValuePair> extraList = URLEncodedUtils.parse(rawExtras, "UTF-8");
^
symbol: variable URLEncodedUtils
location: class APKExpansionPolicy
Z:\library\src\com\google\android\vending\licensing\APKExpansionPolicy.java:383: error: cannot find symbol
for (NameValuePair item : extraList) {
^
symbol: class NameValuePair
location: class APKExpansionPolicy
Z:\library\src\com\google\android\vending\licensing\ServerManagedPolicy.java:266: error: cannot find symbol
List<NameValuePair> extraList = URLEncodedUtils.parse(rawExtras, "UTF-8");
^
symbol: class NameValuePair
location: class ServerManagedPolicy
Z:\library\src\com\google\android\vending\licensing\ServerManagedPolicy.java:266: error: cannot find symbol
List<NameValuePair> extraList = URLEncodedUtils.parse(rawExtras, "UTF-8");
^
symbol: variable URLEncodedUtils
location: class ServerManagedPolicy
Z:\library\src\com\google\android\vending\licensing\ServerManagedPolicy.java:267: error: cannot find symbol
for (NameValuePair item : extraList) {
^
symbol: class NameValuePair
location: class ServerManagedPolicy
Note: Z:\library\src\com\google\android\vending\licensing\LicenseChecker.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
10 errors
:library:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':library:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

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

BUILD FAILED

Total time: 17.512 secs
cmd /c "subst /d Z:"

FastCreate End End: 3:49:39 PM
Compile finished: 3:49:39 PM
I also tried unchecking the Lint option and got the same errors. I'm stumped.

//EDIT

I tried a bunch of things.. removing both extensions I had (play licensing and Google ads) .. nada.. closing and reopening GMS.. nada.. something about reading this thread though got me to thinking a little and I tried deleting the cache in Gamemaker for the temp folder and the cache. BINGO! it worked! (redacted) .. nope.. testing worked.. ONCE... once I added in Licensing extension, it's back for the compile. Testing again for the Asset Compile removal.. now it's still broken in either testing or compile.. cleaned the project.. testing.. (suspecting something wrong with the licensing extension so it's removed at present) ... CORRECT? test passed.. compile run since I really need to get this update out... CORRECT.. so there appears to be something wrong with the Licensing Extension??
 
Last edited by a moderator:
W

WWAZman

Guest
So.. to clarify... I CANNOT use Google Licensing in the latest release. ALL it does is fail to compile. I have to disable Lint and remove Google Licensing, and then delete the Asset Cache under preferences, in order to force GameMaker to compile. To me, this is unacceptable!! I rechecked my directories and sdk's and they are all up to proper date. I would honestly PAY for proper support at this point!!
 

Warspite2

Member
You're not alone on this one i am having the very same issue and some. I have tried many of the same things you have. My huge mistake...I updated both my desktop and laptop with this update. Since I have had these problems many times in the past with updates I normally just update one comp. Updating one comp then trying the compiler first to make sure it works. If its broke then i do not update my other comp. At least then im not shut down but currently I'm shut down. I can't get either one to compile android now.

One idea (so you don't have to uninstall and reinstall gms) maybe you can use the steam version for now. I have done that in the past and it was a temporary solution until an update is released. Only thing is i don't think the steam version is updated to fix that nasty google play security issue.

I will try some more things later. If I get lucky enough to get it to work I will post what I done here.
 
I dunno if it's linked or not but once in a while I have to re-update my licensing info to get the compiler to work; or just log out/ log in to my yoyogames account.
 
W

WWAZman

Guest
I dunno if I mistyped my reply or what, but for ME I found the solution to be:
* uncheck Lint,
* uncheck / remove Google Licensing,
* Get rid of the Google Licensing Extension,
* if you're (like me) using Admob for ads, remove that extension and uncheck and then recheck the
* Google Ads to make it redownload it, and then add it to your project.
* Finally, delete your Asset Cache under preferences..

This is what I've had to do for 10 projects (UGH) that won't have Google Licensing protection for a while, but at least they have the libpng update.

For the record I had to hit delete the Asset Cache MULTIPLE times. HIGHLY annoying and NOT Google's fault :mad:
 
K

kurtwaldo

Guest
@WWAZman
@dasjlm

Hey guys! I was able to solve this issue by simply double clicking on the GooglePlayLicensingAsExt extention, then the Android tab, and adding the following to "Inject to Gradle dependencies":

android {
useLibrary 'org.apache.http.legacy'
}

This should solve the compile errors you are facing, allowing you to compile with the extensions on YYC and normal.

Cheers!
-Kurt
 
D

dasjlm

Guest
No luck. Hopefully there is a fix soon as need to get the Google fix in.
 
D

dasjlm

Guest
Just tried the fix Kurt suggested and it compile worked. Now to test the game. Thanks KURT!
 

Rushad

Member
@kurtwaldo

Your suggestion didnt work for me.

Im using build Tools 24, NDK 12b, support lib 23.2.1, support repository 36.

Apprecaite if anyone who has this working can tell me what setup theyre using
 
K

kurtwaldo

Guest
Are you getting the same errors? Or different ones? Because this is aimed at solving the problem with:

"error: package org.apache.http does not exist
import org.apache.http.NameValuePair;"

What errors are you experiencing?

I'm on:

Build Tools: 23.0.1
Support Tools: 23.1.1
Target and Compile SDK: 23
NDK: 10b

But here is the official SDK support page, and on the Beta and EA, it claims to support 12b
http://help.yoyogames.com/hc/en-us/articles/216753748-SDK-Version-Support

Hope this helps at all, let me know your errors.
-Kurt
 

Rushad

Member
Code:
Build for architecture - armv5

In file included from C:/Users/Rushad/Documents/GameMaker/Cache/testlibpng/Default/Scripts/testlibpng.vars.cpp:1:
In file included from C:\Users\Rushad\AppData\Roaming\GameMaker-Studio\YYC\include\YYGML.h:12:
C:\Android\android-ndk-r12b\platforms\android-14\arch-arm\usr\include\math.h:24:9: warning: '__pure2' macro redefined [-Wmacro-redefined]
#define __pure2
        ^
C:\Android\android-ndk-r12b\platforms\android-14\arch-arm\usr\include\sys/cdefs.h:198:9: note: previous definition is here
#define __pure2 __attribute__((__const__)) /* Android-added: used by FreeBSD libm */
        ^
1 warning generated.
linking libyoyo.so
-g -target armv5te-none-linux-androideabi -Wl,-soname,"C:\Users\Rushad\AppData\Local\Temp\gm_ttt_99196\gm_ttt_51138\lib\armeabi\libyoyo.so" -shared --sysroot="C:\Android\android-ndk-r12b\platforms\android-14\arch-arm" -Wl,--whole-archive "C:\Users\Rushad\AppData\Local\Temp\gm_ttt_99196\gm_ttt_51138\lib\armeabi\libyoyo.a" "C:\Users\Rushad\AppData\Roaming\GameMaker-Studio\YYC\Android\armv5\lib\libyoyo.a" -Wl,--no-whole-archive "C:\Android\android-ndk-r12b\sources\cxx-stl\stlport\libs\armeabi\libstlport_static.a" -L"C:\Android\android-ndk-r12b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows\lib\gcc\arm-linux-androideabi\4.9.x" -Wl,--no-undefined -Wl,-z,noexecstack -L"C:\Android\android-ndk-r12b\platforms\android-14\arch-arm\usr/lib" -lGLESv1_CM -ldl -llog -lz -L"C:\Users\Rushad\AppData\Roaming\GameMaker-Studio\YYC\Android\armv5\lib" -lc -lm -o "C:\Users\Rushad\AppData\Local\Temp\n24lbyzr.lea"
Create finished: 4:44:00 PM
@kurtwaldo

I am running the Beta and using exacrly what they have specified in the SDK support page.

I get this error
 

Andrey

Member
@WWAZman
@dasjlm

Hey guys! I was able to solve this issue by simply double clicking on the GooglePlayLicensingAsExt extention, then the Android tab, and adding the following to "Inject to Gradle dependencies":

android {
useLibrary 'org.apache.http.legacy'
}

This should solve the compile errors you are facing, allowing you to compile with the extensions on YYC and normal.

Cheers!
-Kurt

I have worked!

Build Tools: 23.0.3
Support Lib: 23.2.1
Target and Compile SDK: 23
NDK: 10e
JDK: 1.8.0_101

Thank you!
 
B

Bladevampirek

Guest
I have worked!

Build Tools: 23.0.3
Support Lib: 23.2.1
Target and Compile SDK: 23
NDK: 10e
JDK: 1.8.0_101

Thank you!
@kurtwaldo
am I doing this right?
https://scontent-atl3-1.xx.fbcdn.ne...=5fbec548888a405fde90f8571ac86c6e&oe=58440420
Is this how you put the text into the google licensing extension?
I tried to mirror your installation
Game Maker 1.4.1760
Build Tools: 23.0.3
Support Lib: 23.2.1
NDK: 10e
JDK: 1.8.0_101
----
I am not sure what's going wrong for me, but nothing seems to be letting me compile my larger game files (over 100 mb) with google play licensing and .Apk expansion.
 
Last edited by a moderator:
W

WWAZman

Guest
mine: Gamemaker 1.4.1760
Build tools: 25.1.7
Support Lib: 24.0.2
NDK: r10e (according to directory)
JDK: 1.8.72 (updating to 1.8.101)

Gradle (In Android Studio) 1.3
Android Studio: 143.2821654 (updating to 143.3101438)

* What went wrong:
Execution failed for task ':library:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

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

BUILD FAILED

Total time: 16.848 secs
cmd /c "subst /d Z:"

Lint Build report available at C:\Users\wwazm\Documents\GameMaker\Cache\Twinkies Attack\Android\Default\com.BlinkinStudios.Twinkie_Attack\build\outputs\lint-results.html
Create finished: 6:04:41 PM
 
B

Bladevampirek

Guest
I now have all the correct requirements, can create games but not if google play or google expansion pack is checkmarked. There are no ways to update my larger apps on Google Play (over 100mb) since I can't use expansion feature on Game Maker. It's a Game Maker Studio 1.4.1760 Glitch. Needs to be reported by more people so we can get this thing fixed.
http://www.yoyogames.com/bug
Game Maker (beta) Version: 1.4.1760
Jdk: 1.8
Nkd: 12b
for my Sdk Manager I have
Build Tools: 24.0.1
Android Support Library: 23.2.1
Android Support Repository: 36 (Repository 35 isn't available in the Sdk Manager only 36.)
What else can be done? Am I missing anything at all?
 
Last edited by a moderator:

SnoutUp

Member
Uh... I'm kind of glad that I didn't rush to update GameMaker, but that also means, that I won't be able to update my game after 3 days because Google Play will block APKs with libpng vulnerability. Awesome situation to be in. Gonna have to try that gradle solution and pray that it will work for me.
 
Correct me if I am wrong, but current apps with the libpng issue will still be available and not blocked after the crucial date (15 sept?). All that will happen is that you won't be able to publish any new apps with the issue, and you will not be able to update apk:s with new ones having the libpng issue.

So that would mean you could wait until YoYo fixes the extension and then update, right?
 

SnoutUp

Member
Correct me if I am wrong, but current apps with the libpng issue will still be available and not blocked after the crucial date (15 sept?). All that will happen is that you won't be able to publish any new apps with the issue, and you will not be able to update apk:s with new ones having the libpng issue.

So that would mean you could wait until YoYo fixes the extension and then update, right?
Yes, but it's Google, they could start de-ranking vulnerable apps in the search results (just a thought, not something to panic about) and not every one can and/or want to wait for the fix. I have a game in beta, I upload new APK every day, this is not a great situation for me.
 
P

PlayLight

Guest
Wow, there's a lot of different build issues and madness going on in this thread :)

For a lot of these build issues, there is conflicts with Build-tools, APIs and Support lib revisions. (eg. build-tools 25.0.1 doesn't exist)

Other's have the Apache http issue or Apache lib conflict or other GP extension issues.



There are a few threads which go over these issues, but i would suggest ironing out your SDK Manager first and get up-to-date to avoid further build issues, especially if you are using any GP extensions.

I know some of you have things compiling using depreciated packages, but really, that not the best solution in the long run.

To get up-to-date with your Android SDK, NDK and Java, go here. (post 6)

If you're using GP Licensing Extension and receiving Apache build issues, go here. (post 32)

If you're manually replacing SDK packages with depreciated revisions, you are looking for a world of trouble.




Once you're up-to-date, if you're receiving any other build issues i'm happy to help out, but make a new topic for each individual error or it just gets messy.

(If it's GP Ads extension related, from what i've heard you're out of luck at the moment. I don't personally use that extension so if i'm wrong someone jump in.)
 
B

Bladevampirek

Guest
Richard from Yoyogames messaged me through the help ticket that I've opened, they have now upgraded the google play extension & .apk expansion pack.
1. when I downgraded my build tools to 24 (since Yoyogames doesn't support over 24 build tools.)
2. deleted the old extension and expansion packs from my project.
3. upgraded my Game Maker Studio's Google Play Extension and .Apk Expansion packs.
4. cleared my compiler cache by the run button, temp directory, asset cache, backup directory cache through the file - preferences.
5. it's now building successfully.
I've been waiting on Google play to approve it, they did. Now the libpng update is installed on my larger game. I am now back in business, thanks again for all of your help good job patching the glitch.
Game Maker (beta) 1.4.1760
Jdk 1.8
nkd 12b
for my Sdk Manager I have
build tools 24
Android Support Library 23.2.1
Android Support Repository 36
----
Also do not forget to set your global settings as well.
 

Warspite2

Member
I have...

Target SDK 24
Min SDK 9
Compile SDK 24

My Build tools are 24.0.3 and Support Lib is 23.2.1

I can build fine now BUT once I add in the licensing extension in I get failed build. So you are saying I should use only Build tools 24 and not any higher? I am going to try that and see if it clears of my failed builds with the licensing implemented.

Oh from your screenshot you could probably use Target 24 and Compile 24?

This link... http://help.yoyogames.com/hc/en-us/articles/216753498-GameMaker-Studio-Android-SDK-and-NDK-setup-
It don't clarify what should be set in there.

Edit: Actually it seems Build tools 24.0.3 does indeed work. It must have been something else I had done to correct it. This has been one heck of a ride for me since I updated to 1760 so to help others I am going to post a short how to thread on all that I have done. Maybe it will save others a lot of time and frustration. Thanks for sharing your findings.
 
Last edited:
T

TPCOP

Guest
@WWAZman
@dasjlm

Hey guys! I was able to solve this issue by simply double clicking on the GooglePlayLicensingAsExt extention, then the Android tab, and adding the following to "Inject to Gradle dependencies":

android {
useLibrary 'org.apache.http.legacy'
}

This should solve the compile errors you are facing, allowing you to compile with the extensions on YYC and normal.

Cheers!
-Kurt
that worked for me.
From this common config :
BT 23.0.3
S. Lib 23.2.1
target Sdk 23, min 14, compile 23
ndk-r10c
jdk1.7.0_79
All Android Sdk fully updated before find the problem
 
Top