• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • 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 Importing Google Play Services breaks my project (cant compile anymore)

Vinsane

Member
Hey guys.

I know GMS2 is going through some issues atm with all the updates etc. I was not able to render my project on my android on the latest version of game maker so I downgraded it to the previous version like what I saw was suggested but sadly that made no difference :(

IDE V2.2.5.481 and Runtime 2.2.5.378

Google Play Services is 100% triggering this from what I can see because as soon as I delete the extention the project works again.

Here is part of the compile where the errors actually start:


> Task :library:compileDebugJavaWithJavac FAILED
S:\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
S:\library\src\com\google\android\vending\licensing\APKExpansionPolicy.java:71: error: cannot find symbol
private PreferenceObfuscator mPreferences;
^
symbol: class PreferenceObfuscator
location: class APKExpansionPolicy
S:\library\src\com\google\android\vending\licensing\ILicensingService.java:98: error: cannot find symbol
public void checkLicense(long nonce, java.lang.String packageName, com.google.android.vending.licensing.ILicenseResultListener listener) throws android.os.RemoteException;
^
symbol: class ILicenseResultListener
location: package com.google.android.vending.licensing
S:\library\src\com\google\android\vending\licensing\ILicensingService.java:81: error: cannot find symbol
public void checkLicense(long nonce, java.lang.String packageName, com.google.android.vending.licensing.ILicenseResultListener listener) throws android.os.RemoteException
^
symbol: class ILicenseResultListener
location: package com.google.android.vending.licensing
S:\library\src\com\google\android\vending\licensing\LicenseChecker.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
S:\library\src\com\google\android\vending\licensing\LicenseValidator.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
S:\library\src\com\google\android\vending\licensing\LicenseChecker.java:136: error: cannot find symbol
public synchronized void checkAccess(LicenseCheckerCallback callback) {
^
symbol: class LicenseCheckerCallback
location: class LicenseChecker
S:\library\src\com\google\android\vending\licensing\LicenseValidator.java:51: error: cannot find symbol
private final LicenseCheckerCallback mCallback;
^
symbol: class LicenseCheckerCallback
location: class LicenseValidator
S:\library\src\com\google\android\vending\licensing\LicenseValidator.java:57: error: cannot find symbol
LicenseValidator(Policy policy, DeviceLimiter deviceLimiter, LicenseCheckerCallback callback,
^
symbol: class LicenseCheckerCallback
location: class LicenseValidator
S:\library\src\com\google\android\vending\licensing\LicenseValidator.java:67: error: cannot find symbol
public LicenseCheckerCallback getCallback() {
^
symbol: class LicenseCheckerCallback
location: class LicenseValidator
S:\library\src\com\google\android\vending\licensing\LicenseChecker.java:198: error: package ILicenseResultListener does not exist
private class ResultListener extends ILicenseResultListener.Stub {
^
S:\library\src\com\google\android\vending\licensing\ServerManagedPolicy.java:68: error: cannot find symbol
private PreferenceObfuscator mPreferences;
^
symbol: class PreferenceObfuscator
location: class ServerManagedPolicy
S:\library\src\com\google\android\vending\licensing\util\Base64.java:418: error: cannot find symbol
public static byte[] decode(String s) throws Base64DecoderException {
^
symbol: class Base64DecoderException
location: class Base64
S:\library\src\com\google\android\vending\licensing\util\Base64.java:430: error: cannot find symbol
public static byte[] decodeWebSafe(String s) throws Base64DecoderException {
^
symbol: class Base64DecoderException
location: class Base64
S:\library\src\com\google\android\vending\licensing\util\Base64.java:444: error: cannot find symbol
public static byte[] decode(byte[] source) throws Base64DecoderException {
^
symbol: class Base64DecoderException
location: class Base64
S:\library\src\com\google\android\vending\licensing\util\Base64.java:457: error: cannot find symbol
throws Base64DecoderException {
^
symbol: class Base64DecoderException
location: class Base64
S:\library\src\com\google\android\vending\licensing\util\Base64.java:473: error: cannot find symbol
throws Base64DecoderException {
^
symbol: class Base64DecoderException
location: class Base64
S:\library\src\com\google\android\vending\licensing\util\Base64.java:488: error: cannot find symbol
throws Base64DecoderException {
^
symbol: class Base64DecoderException
location: class Base64
S:\library\src\com\google\android\vending\licensing\util\Base64.java:503: error: cannot find symbol
throws Base64DecoderException {
^
symbol: class Base64DecoderException
location: class Base64
S:\library\src\com\google\android\vending\licensing\AESObfuscator.java:100: error: cannot find symbol
} catch (Base64DecoderException e) {
^
symbol: class Base64DecoderException
location: class AESObfuscator
S:\library\src\com\google\android\vending\licensing\APKExpansionPolicy.java:91: error: cannot find symbol
mPreferences = new PreferenceObfuscator(sp, obfuscator);
^
symbol: class PreferenceObfuscator
location: class APKExpansionPolicy
S:\library\src\com\google\android\vending\licensing\ILicensingService.java:58: error: cannot find symbol
com.google.android.vending.licensing.ILicenseResultListener _arg2;
^
symbol: class ILicenseResultListener
location: package com.google.android.vending.licensing
S:\library\src\com\google\android\vending\licensing\ILicensingService.java:59: error: package com.google.android.vending.licensing.ILicenseResultListener does not exist
_arg2 = com.google.android.vending.licensing.ILicenseResultListener.Stub.asInterface(data.readStrongBinder());
^
S:\library\src\com\google\android\vending\licensing\LicenseChecker.java:116: error: cannot find symbol
} catch (Base64DecoderException e) {
^
symbol: class Base64DecoderException
location: class LicenseChecker
S:\library\src\com\google\android\vending\licensing\LicenseChecker.java:164: error: cannot find symbol
callback.applicationError(LicenseCheckerCallback.ERROR_MISSING_PERMISSION);
^
symbol: variable LicenseCheckerCallback
location: class LicenseChecker
S:\library\src\com\google\android\vending\licensing\LicenseChecker.java:165: error: cannot find symbol
} catch (Base64DecoderException e) {
^
symbol: class Base64DecoderException
location: class LicenseChecker
S:\library\src\com\google\android\vending\licensing\LicenseValidator.java:110: error: cannot find symbol
handleApplicationError(LicenseCheckerCallback.ERROR_INVALID_PUBLIC_KEY);
^
symbol: variable LicenseCheckerCallback
location: class LicenseValidator
S:\library\src\com\google\android\vending\licensing\LicenseValidator.java:114: error: cannot find symbol
} catch (Base64DecoderException e) {
^
symbol: class Base64DecoderException
location: class LicenseValidator
S:\library\src\com\google\android\vending\licensing\LicenseValidator.java:184: error: cannot find symbol
handleApplicationError(LicenseCheckerCallback.ERROR_INVALID_PACKAGE_NAME);
^
symbol: variable LicenseCheckerCallback
location: class LicenseValidator
S:\library\src\com\google\android\vending\licensing\LicenseValidator.java:187: error: cannot find symbol
handleApplicationError(LicenseCheckerCallback.ERROR_NON_MATCHING_UID);
^
symbol: variable LicenseCheckerCallback
location: class LicenseValidator
S:\library\src\com\google\android\vending\licensing\LicenseValidator.java:190: error: cannot find symbol
handleApplicationError(LicenseCheckerCallback.ERROR_NOT_MARKET_MANAGED);
^
symbol: variable LicenseCheckerCallback
location: class LicenseValidator
S:\library\src\com\google\android\vending\licensing\ServerManagedPolicy.java:77: error: cannot find symbol
mPreferences = new PreferenceObfuscator(sp, obfuscator);
^
symbol: class PreferenceObfuscator
location: class ServerManagedPolicy
S:\library\src\com\google\android\vending\licensing\util\Base64.java:525: error: cannot find symbol
throw new Base64DecoderException(
^
symbol: class Base64DecoderException
location: class Base64
S:\library\src\com\google\android\vending\licensing\util\Base64.java:529: error: cannot find symbol
throw new Base64DecoderException(
^
symbol: class Base64DecoderException
location: class Base64
S:\library\src\com\google\android\vending\licensing\util\Base64.java:533: error: cannot find symbol
throw new Base64DecoderException(
^
symbol: class Base64DecoderException
location: class Base64
S:\library\src\com\google\android\vending\licensing\util\Base64.java:546: error: cannot find symbol
throw new Base64DecoderException("Bad Base64 input character at " + i
^
symbol: class Base64DecoderException
location: class Base64
S:\library\src\com\google\android\vending\licensing\util\Base64.java:559: error: cannot find symbol
throw new Base64DecoderException("single trailing character at offset "
^
symbol: class Base64DecoderException
location: class Base64
Note: S:\library\src\com\google\android\vending\licensing\LicenseChecker.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
37 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':library: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 2s
22 actionable tasks: 22 executed


C:\WINDOWS\system32\cmd.exe exited with non-zero status (1)


UPDATE: The Google Play Services project that comes with the extension actually renders on my phone under a YYC build... wow. i'm going to see if ads trigger.
YES - The google project works fine but my render doesn't go figure. same settings as well.. I have no idea whats going on now.
 
Last edited:

chirpy

Member
If you aren't using licensing and apk expansion, you can delete those two extensions that come with the GooglePlayExtension package.
 
Y

yeaat

Guest
I do have the same problem, I get "cannot find symbol" error & I am unable to get an export with google play services.
I have to use the apk expansion as my game's size is bigger than 150 mb. (Without the apk expansion extension everything works normal by the way)
Anyone having similar issues?
 
Top