• 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 Compilation error on Android

GMS2 has been updated to GMS2.3. the Usual project compiles normally, but when I import Google Play Services to add ads to post for a closed beta test in the Play Market, I get an error at the end. Here is a piece of the compilation report:

> Task :com.Des_Interactive.Atomic_Score:processDebugManifest
S:\com.Des_Interactive.Atomic_Score\src\main\AndroidManifest.xml:15:1-63 Warning:
Element uses-permission#android.permission.INTERNET at AndroidManifest.xml:15:1-63 duplicated with element declared at AndroidManifest.xml:13:1-63
S:\com.Des_Interactive.Atomic_Score\src\main\AndroidManifest.xml:36:3-132:17 Warning:
application@android:label was tagged at AndroidManifest.xml:36 to replace other declarations but no other declaration present
S:\com.Des_Interactive.Atomic_Score\src\main\AndroidManifest.xml:37:5-46:16 Warning:
activity#com.Des_Interactive.Atomic_Score.RunnerActivity@android:label was tagged at AndroidManifest.xml:37 to replace other declarations but no other declaration present
S:\com.Des_Interactive.Atomic_Score\src\main\AndroidManifest.xml:15:1-63 Warning:
Element uses-permission#android.permission.INTERNET at AndroidManifest.xml:15:1-63 duplicated with element declared at AndroidManifest.xml:13:1-63
S:\com.Des_Interactive.Atomic_Score\src\main\AndroidManifest.xml:36:3-132:17 Warning:
application@android:label was tagged at AndroidManifest.xml:36 to replace other declarations but no other declaration present
S:\com.Des_Interactive.Atomic_Score\src\main\AndroidManifest.xml:37:5-46:16 Warning:
activity#com.Des_Interactive.Atomic_Score.RunnerActivity@android:label was tagged at AndroidManifest.xml:37 to replace other declarations but no other declaration present
S:\com.Des_Interactive.Atomic_Score\src\main\AndroidManifest.xml:15:1-63 Warning:
Element uses-permission#android.permission.INTERNET at AndroidManifest.xml:15:1-63 duplicated with element declared at AndroidManifest.xml:13:1-63
S:\com.Des_Interactive.Atomic_Score\src\main\AndroidManifest.xml:36:3-132:17 Warning:
application@android:label was tagged at AndroidManifest.xml:36 to replace other declarations but no other declaration present
S:\com.Des_Interactive.Atomic_Score\src\main\AndroidManifest.xml:37:5-46:16 Warning:
activity#com.Des_Interactive.Atomic_Score.RunnerActivity@android:label was tagged at AndroidManifest.xml:37 to replace other declarations but no other declaration present
S:\com.Des_Interactive.Atomic_Score\src\main\AndroidManifest.xml:15:1-63 Warning:
Element uses-permission#android.permission.INTERNET at AndroidManifest.xml:15:1-63 duplicated with element declared at AndroidManifest.xml:13:1-63
S:\com.Des_Interactive.Atomic_Score\src\main\AndroidManifest.xml:36:3-132:17 Warning:
application@android:label was tagged at AndroidManifest.xml:36 to replace other declarations but no other declaration present
S:\com.Des_Interactive.Atomic_Score\src\main\AndroidManifest.xml:37:5-46:16 Warning:
activity#com.Des_Interactive.Atomic_Score.RunnerActivity@android:label was tagged at AndroidManifest.xml:37 to replace other declarations but no other declaration present
S:\com.Des_Interactive.Atomic_Score\src\main\AndroidManifest.xml:15:1-63 Warning:
Element uses-permission#android.permission.INTERNET at AndroidManifest.xml:15:1-63 duplicated with element declared at AndroidManifest.xml:13:1-63
S:\com.Des_Interactive.Atomic_Score\src\main\AndroidManifest.xml:36:3-132:17 Warning:
application@android:label was tagged at AndroidManifest.xml:36 to replace other declarations but no other declaration present
S:\com.Des_Interactive.Atomic_Score\src\main\AndroidManifest.xml:37:5-46:16 Warning:
activity#com.Des_Interactive.Atomic_Score.RunnerActivity@android:label was tagged at AndroidManifest.xml:37 to replace other declarations but no other declaration present

> Task :com.Des_Interactive.Atomic_Score:processDebugResources
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\ExpansionAlarmReceiver.java:3: error: cannot find symbol
import com.google.android.vending.expansion.downloader.DownloaderClientMarshaller;
^
symbol: class DownloaderClientMarshaller
location: package com.google.android.vending.expansion.downloader
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\ExpansionDownloaderService.java:3: error: package com.google.android.vending.expansion.downloader.impl does not exist
import com.google.android.vending.expansion.downloader.impl.DownloaderService;
^
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\ExpansionDownloaderService.java:6: error: cannot find symbol
public class ExpansionDownloaderService extends DownloaderService {
^
symbol: class DownloaderService
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:41: error: cannot find symbol
import com.google.android.vending.expansion.downloader.DownloadProgressInfo;
^
symbol: class DownloadProgressInfo
location: package com.google.android.vending.expansion.downloader
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:42: error: cannot find symbol
import com.google.android.vending.expansion.downloader.DownloaderClientMarshaller;
^
symbol: class DownloaderClientMarshaller
location: package com.google.android.vending.expansion.downloader
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:43: error: cannot find symbol
import com.google.android.vending.expansion.downloader.DownloaderServiceMarshaller;
^
symbol: class DownloaderServiceMarshaller
location: package com.google.android.vending.expansion.downloader
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:44: error: cannot find symbol
import com.google.android.vending.expansion.downloader.Helpers;
^
symbol: class Helpers
location: package com.google.android.vending.expansion.downloader
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:45: error: cannot find symbol
import com.google.android.vending.expansion.downloader.IDownloaderClient;
^
symbol: class IDownloaderClient
location: package com.google.android.vending.expansion.downloader
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:46: error: cannot find symbol
import com.google.android.vending.expansion.downloader.IDownloaderService;
^
symbol: class IDownloaderService
location: package com.google.android.vending.expansion.downloader
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:47: error: cannot find symbol
import com.google.android.vending.expansion.downloader.IStub;
^
symbol: class IStub
location: package com.google.android.vending.expansion.downloader
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:50: error: cannot find symbol
public class PlayAPKExpansionExtension extends RunnerSocial implements IDownloaderClient
^
symbol: class IDownloaderClient
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:55: error: cannot find symbol
private IDownloaderService mRemoteService;

> Task :com.Des_Interactive.Atomic_Score:compileDebugJavaWithJavac FAILED
^
symbol: class IDownloaderService
location: class PlayAPKExpansionExtension
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:56: error: cannot find symbol
private IStub mDownloaderClientStub;
^
symbol: class IStub
location: class PlayAPKExpansionExtension
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:208: error: cannot find symbol
public void onDownloadProgress(DownloadProgressInfo progress)
^
symbol: class DownloadProgressInfo
location: class PlayAPKExpansionExtension
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\ExpansionAlarmReceiver.java:22: error: cannot find symbol
DownloaderClientMarshaller.startDownloadServiceIfRequired(context, intent, ExpansionDownloaderService.class);
^
symbol: variable DownloaderClientMarshaller
location: class ExpansionAlarmReceiver
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\ExpansionDownloaderService.java:19: error: method does not override or implement a method from a supertype
@Override
^
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\ExpansionDownloaderService.java:31: error: method does not override or implement a method from a supertype
@Override
^
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\ExpansionDownloaderService.java:42: error: method does not override or implement a method from a supertype
@Override
^
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:101: error: method does not override or implement a method from a supertype
@Override
^
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:104: error: cannot find symbol
mRemoteService = DownloaderServiceMarshaller.CreateProxy(m);
^
symbol: variable DownloaderServiceMarshaller
location: class PlayAPKExpansionExtension
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:108: error: method does not override or implement a method from a supertype
@Override
^
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:112: error: cannot find symbol
stringDownloadID = Helpers.getDownloaderStringResourceIDFromState(newState);
^
symbol: variable Helpers
location: class PlayAPKExpansionExtension
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:123: error: cannot find symbol
case IDownloaderClient.STATE_IDLE:
^
symbol: variable IDownloaderClient
location: class PlayAPKExpansionExtension
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:129: error: cannot find symbol
case IDownloaderClient.STATE_CONNECTING:
^
symbol: variable IDownloaderClient
location: class PlayAPKExpansionExtension
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:130: error: cannot find symbol
case IDownloaderClient.STATE_FETCHING_URL:
^
symbol: variable IDownloaderClient
location: class PlayAPKExpansionExtension
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:135: error: cannot find symbol
case IDownloaderClient.STATE_DOWNLOADING:
^
symbol: variable IDownloaderClient
location: class PlayAPKExpansionExtension
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:141: error: cannot find symbol
case IDownloaderClient.STATE_FAILED_CANCELED:
^
symbol: variable IDownloaderClient
location: class PlayAPKExpansionExtension
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:142: error: cannot find symbol
case IDownloaderClient.STATE_FAILED:
^
symbol: variable IDownloaderClient
location: class PlayAPKExpansionExtension
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:143: error: cannot find symbol
case IDownloaderClient.STATE_FAILED_FETCHING_URL:
^
symbol: variable IDownloaderClient
location: class PlayAPKExpansionExtension
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:144: error: cannot find symbol
case IDownloaderClient.STATE_FAILED_UNLICENSED:
^
symbol: variable IDownloaderClient
location: class PlayAPKExpansionExtension
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:149: error: cannot find symbol
case IDownloaderClient.STATE_PAUSED_NEED_CELLULAR_PERMISSION:
^
symbol: variable IDownloaderClient
location: class PlayAPKExpansionExtension
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:150: error: cannot find symbol
case IDownloaderClient.STATE_PAUSED_WIFI_DISABLED_NEED_CELLULAR_PERMISSION:
^
symbol: variable IDownloaderClient
location: class PlayAPKExpansionExtension
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:157: error: cannot find symbol
case IDownloaderClient.STATE_PAUSED_BY_REQUEST:
^
symbol: variable IDownloaderClient
location: class PlayAPKExpansionExtension
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:161: error: cannot find symbol
case IDownloaderClient.STATE_PAUSED_ROAMING:
^
symbol: variable IDownloaderClient
location: class PlayAPKExpansionExtension
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:162: error: cannot find symbol
case IDownloaderClient.STATE_PAUSED_SDCARD_UNAVAILABLE:
^
symbol: variable IDownloaderClient
location: class PlayAPKExpansionExtension
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:166: error: cannot find symbol
case IDownloaderClient.STATE_COMPLETED:
^
symbol: variable IDownloaderClient
location: class PlayAPKExpansionExtension
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:207: error: method does not override or implement a method from a supertype
@Override
^
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:210: error: cannot find symbol
mAverageSpeed.setText(RunnerActivity.CurrentActivity.getString(R.string.kilobytes_per_second, Helpers.getSpeedString(progress.mCurrentSpeed)));
^
symbol: variable Helpers
location: class PlayAPKExpansionExtension
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:211: error: cannot find symbol
mTimeRemaining.setText(RunnerActivity.CurrentActivity.getString(R.string.time_remaining,Helpers.getTimeRemaining(progress.mTimeRemaining)));
^
symbol: variable Helpers
location: class PlayAPKExpansionExtension
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:217: error: cannot find symbol
mProgressFraction.setText(Helpers.getDownloadProgressString(progress.mOverallProgress, progress.mOverallTotal));
^
symbol: variable Helpers
location: class PlayAPKExpansionExtension
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:279: error: cannot find symbol
int startResult = DownloaderClientMarshaller.startDownloadServiceIfRequired(RunnerActivity.CurrentActivity, pendingIntent, ExpansionDownloaderService.class);
^
symbol: variable DownloaderClientMarshaller
location: class PlayAPKExpansionExtension
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:281: error: cannot find symbol
if (startResult != DownloaderClientMarshaller.NO_DOWNLOAD_REQUIRED)
^
symbol: variable DownloaderClientMarshaller
location: class PlayAPKExpansionExtension
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:297: error: cannot find symbol
mDownloaderClientStub = DownloaderClientMarshaller.CreateStub(this, ExpansionDownloaderService.class);
^
symbol: variable DownloaderClientMarshaller
location: class PlayAPKExpansionExtension
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:377: error: cannot find symbol
mRemoteService.setDownloadFlags(IDownloaderService.FLAGS_DOWNLOAD_OVER_CELLULAR);
^
symbol: variable IDownloaderService
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:387: error: cannot find symbol
mStatusText.setText(Helpers.getDownloaderStringResourceIDFromState(newState));
^
symbol: variable Helpers
location: class PlayAPKExpansionExtension
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:409: error: cannot find symbol
String filename = Helpers.getExpansionAPKFileName( RunnerActivity.CurrentActivity, true, versionCode ); //without path
^
symbol: variable Helpers
location: class PlayAPKExpansionExtension
S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\PlayAPKExpansionExtension.java:410: error: cannot find symbol
String filePath = Helpers.generateSaveFileName( RunnerActivity.CurrentActivity, filename ); //+path
^
symbol: variable Helpers
location: class PlayAPKExpansionExtension
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: S:\com.Des_Interactive.Atomic_Score\src\main\java\com\Des_Interactive\Atomic_Score\GooglePlayServicesExtension.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
47 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':com.Des_Interactive.Atomic_Score:compileDebugJavaWithJavac'.
> 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. 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 12s
34 actionable tasks: 31 executed, 3 up-to-date
 

barthec

Member
I also have this kind of error. It's related with Google Licensing. It happens after upgrade to GMS 2.3 .... I cannot compile my game anymore with google services. Any advice would be good.
 
I also have this kind of error. It's related with Google Licensing. It happens after upgrade to GMS 2.3 .... I cannot compile my game anymore with google services. Any advice would be good.

I saw your message in this thread:


Have you solved the problem?
 

barthec

Member
I saw your message in this thread:


Have you solved the problem?
I did not resolve this. Then I realised, License part of ad ons was switched off. Thus the compilation passed. Problem is still there.
 
I did not resolve this. Then I realised, License part of ad ons was switched off. Thus the compilation passed. Problem is still there.
you were able to compile apk but license issue? Have you posted apk in the play market for a closed alpha test? I read that you need to do this, then install it through the play market. If you could compile, I would like to know how you solved the problems with google play services? what steps have you taken? I would like to know. p.s. I hope you understand my English a little. I use Google translate)
 

barthec

Member
No, compilation cannot finish with license add on turned on.
It goes like this:

> Task :library:compileDebugJavaWithJavac FAILED
W:\library\src\com\google\android\vending\licensing\AESObfuscator.java:20: error: cannot find symbol
import com.google.android.vending.licensing.util.Base64DecoderException;
^
symbol: class Base64DecoderException
location: package com.google.android.vending.licensing.util
W:\library\src\com\google\android\vending\licensing\LicenseChecker.java:20: error: cannot find symbol
import com.google.android.vending.licensing.util.Base64DecoderException;

(...)

and more
 

barthec

Member
So, here it is:

Copy your \extension java classes about "licensing" and "apkextension". For example:

extensions\GooglePlayLicensingExtension\AndroidSource\Sdk\library\src\com\google\android\vending\licensing

copy them to your GMS 2.3 project extension locations. Check other classes in extension Sdk directories.

What I found is that GMS 2.3 does not get all Java classes needed thus the build fails.

I copied stuff from directories before 2.3 and now I could compile. Took me a while to figure it out but Im happy.

Cheers
 
So, here it is:

Copy your \extension java classes about "licensing" and "apkextension". For example:

extensions\GooglePlayLicensingExtension\AndroidSource\Sdk\library\src\com\google\android\vending\licensing

copy them to your GMS 2.3 project extension locations. Check other classes in extension Sdk directories.

What I found is that GMS 2.3 does not get all Java classes needed thus the build fails.

I copied stuff from directories before 2.3 and now I could compile. Took me a while to figure it out but Im happy.

Cheers
can you explain in more detail what to do? where and where to copy these files from? files need to be copied or folders? I didn't find the "apkextension" folder. I already wanted to release a closed beta version of my game, but because of this update I cannot test for displaying ads and finally finish the release version of the game. you would help me a lot by explaining in more detail. I already wrote in support. I was told that they would fix this error in the next updates, but it is not clear when these fixes will be released.
 

Unleasher

Member
can you explain in more detail what to do? where and where to copy these files from? files need to be copied or folders? I didn't find the "apkextension" folder. I already wanted to release a closed beta version of my game, but because of this update I cannot test for displaying ads and finally finish the release version of the game. you would help me a lot by explaining in more detail. I already wrote in support. I was told that they would fix this error in the next updates, but it is not clear when these fixes will be released.
I am having a similar issue (couple of different debug messages, but it starts when adding the Google Play Services as well, so probably same deal).

I started using GameMaker 2.3 directly, so I don't even have the older version of the files... How am I supposed to fix this?
Can someone upload the files if you guys managed to fix it?
 

Unleasher

Member
Maybe this issue is happening due to a bad configuration of the Platform Settings > Android > Paths, and/or Game Options > Android > Build Settings, and I say this because the files that are not being found do exist on my SDK > Extras folder... Can anyone help with this setup?
Im currently using the default that GM gives for the Build Settings, and all my paths on Platform Settings are marked as VERIFIED
 
Maybe this issue is happening due to a bad configuration of the Platform Settings > Android > Paths, and/or Game Options > Android > Build Settings, and I say this because the files that are not being found do exist on my SDK > Extras folder... Can anyone help with this setup?
Im currently using the default that GM gives for the Build Settings, and all my paths on Platform Settings are marked as VERIFIED
I don't think so. everything compiles well without google play services.
 

Unleasher

Member
By the way, GooglePlayServicesExtension alone works. Then I tried adding the Licensing Extension as well, and everything broke.
Even after deleting the extension, the issue wont go away. This is very frustating.
 

Unleasher

Member
So, I might have fixed it, although more testing is probably needed.

What I did was to add extension by extension, and I found out that both the APK Expansion and the Licensing will give trouble when debugging.
Since I do not need the APK Expansion, I didn't bothered too much with that one, and simply removed it (and learned that after removing, you need to CLEAN your build otherwise it will fail).

After that, I added all the other expansions, and it was working. Went back, added the Licensing Extension, and the issue started to happen again.
So I went into my SDK folder > extras > google > market_licensing > library, and copied everything in there. Went to my Gamemaker folder project > extensions > GooglePlayLicensingExtension > AndroidSource > Sdk > library, removed everything that was there, and pasted what I just copied.
Go back to GM2, update your extension (there should be a popup for it), clean the project, build it, TADA -> Worked!

Hope it can work for you as well.

Maybe something similar can be done with the APK Expansion as well.
 
So, I might have fixed it, although more testing is probably needed.

What I did was to add extension by extension, and I found out that both the APK Expansion and the Licensing will give trouble when debugging.
Since I do not need the APK Expansion, I didn't bothered too much with that one, and simply removed it (and learned that after removing, you need to CLEAN your build otherwise it will fail).

After that, I added all the other expansions, and it was working. Went back, added the Licensing Extension, and the issue started to happen again.
So I went into my SDK folder > extras > google > market_licensing > library, and copied everything in there. Went to my Gamemaker folder project > extensions > GooglePlayLicensingExtension > AndroidSource > Sdk > library, removed everything that was there, and pasted what I just copied.
Go back to GM2, update your extension (there should be a popup for it), clean the project, build it, TADA -> Worked!

Hope it can work for you as well.

Maybe something similar can be done with the APK Expansion as well.
It strange. I don't have a market_licensing> folder. I have visual studio 2015. maybe that's why? Could you send an archive of the required folder? I would be immensely happy if it compiles the project)
 

Unleasher

Member
It strange. I don't have a market_licensing> folder. I have visual studio 2015. maybe that's why? Could you send an archive of the required folder? I would be immensely happy if it compiles the project)
Hey, I bet you need Android Studio in order to update the necessary files that you will need (if not now, in the future).
The SDK Manager there should handle it for you, but I am sending the market_licensing folder as I have it anyway :)
I hope it works for you


The above link was broken... here is a new one https://drive.google.com/file/d/1-zbc-SaPHKqXDn8kvpbm2-SJ3NXQ22mD/view?usp=sharing
 
Hey, I bet you need Android Studio in order to update the necessary files that you will need (if not now, in the future).
The SDK Manager there should handle it for you, but I am sending the market_licensing folder as I have it anyway :)
I hope it works for you


The above link was broken... here is a new one https://drive.google.com/file/d/1-zbc-SaPHKqXDn8kvpbm2-SJ3NXQ22mD/view?usp=sharing
I wanted to write android studio) I have a normal apk compiling normally. under the link the archive is damaged (
 

barthec

Member
So, I might have fixed it, although more testing is probably needed.

What I did was to add extension by extension, and I found out that both the APK Expansion and the Licensing will give trouble when debugging.
Since I do not need the APK Expansion, I didn't bothered too much with that one, and simply removed it (and learned that after removing, you need to CLEAN your build otherwise it will fail).

After that, I added all the other expansions, and it was working. Went back, added the Licensing Extension, and the issue started to happen again.
So I went into my SDK folder > extras > google > market_licensing > library, and copied everything in there. Went to my Gamemaker folder project > extensions > GooglePlayLicensingExtension > AndroidSource > Sdk > library, removed everything that was there, and pasted what I just copied.
Go back to GM2, update your extension (there should be a popup for it), clean the project, build it, TADA -> Worked!

Hope it can work for you as well.

Maybe something similar can be done with the APK Expansion as well.

Impressive.

It's true, problem is if you don't have an older GMS project.

The licensing extension bug is recognized by yoyo so we have to wait for their fix, BUT the workaround is to copy the Java classes which are missing for licensing compilation (output console shows the paths which are missing). That's what I did so far and works for me.
 

Unleasher

Member
Impressive.

It's true, problem is if you don't have an older GMS project.

The licensing extension bug is recognized by yoyo so we have to wait for their fix, BUT the workaround is to copy the Java classes which are missing for licensing compilation (output console shows the paths which are missing). That's what I did so far and works for me.
Yep, working for me as well!

I have one small issue now, where ONE SINGLE device is not getting passed the License Check, and I have no idea why...
I get an error failed license check reason=561. Might be related to the code that I copied/pasted, might not be...

EDIT:
Nope, that last issue is probably on me... I was somehow using a wrong key I guess (have no Idea where I copied it from).
Now im redeploying it to google play, and it should be good to go :D
 
Last edited:
Top