• 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 Android compilation FAILED in GMS 2.3

barthec

Member
Hey
Today I upgraded GMS. Here is what I got with Google Play Services. I uninstalled the extension, reinstalled it from web marketplace, cleared cache, but still:

> 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;
^
symbol: class Base64DecoderException
location: package com.google.android.vending.licensing.util
W:\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
W:\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
W:\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
W:\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
W:\library\src\com\google\android\vending\licensing\util\Base64.java:457: error: cannot find symbol
throws Base64DecoderException {
^
symbol: class Base64DecoderException
location: class Base64
W:\library\src\com\google\android\vending\licensing\util\Base64.java:473: error: cannot find symbol
throws Base64DecoderException {
^
symbol: class Base64DecoderException
location: class Base64
W:\library\src\com\google\android\vending\licensing\util\Base64.java:488: error: cannot find symbol
throws Base64DecoderException {
^
symbol: class Base64DecoderException
location: class Base64
W:\library\src\com\google\android\vending\licensing\util\Base64.java:503: error: cannot find symbol
throws Base64DecoderException {
^
symbol: class Base64DecoderException
location: class Base64
W:\library\src\com\google\android\vending\licensing\AESObfuscator.java:100: error: cannot find symbol
} catch (Base64DecoderException e) {
^
symbol: class Base64DecoderException
location: class AESObfuscator
W:\library\src\com\google\android\vending\licensing\LicenseChecker.java:116: error: cannot find symbol
} catch (Base64DecoderException e) {
^
symbol: class Base64DecoderException
location: class LicenseChecker
W:\library\src\com\google\android\vending\licensing\LicenseChecker.java:165: error: cannot find symbol
} catch (Base64DecoderException e) {
^
symbol: class Base64DecoderException
location: class LicenseChecker
W:\library\src\com\google\android\vending\licensing\LicenseValidator.java:114: error: cannot find symbol
} catch (Base64DecoderException e) {
^
symbol: class Base64DecoderException
location: class LicenseValidator
W:\library\src\com\google\android\vending\licensing\util\Base64.java:525: error: cannot find symbol
throw new Base64DecoderException(
^
symbol: class Base64DecoderException
location: class Base64
W:\library\src\com\google\android\vending\licensing\util\Base64.java:529: error: cannot find symbol
throw new Base64DecoderException(
^
symbol: class Base64DecoderException
location: class Base64
W:\library\src\com\google\android\vending\licensing\util\Base64.java:533: error: cannot find symbol
throw new Base64DecoderException(
^
symbol: class Base64DecoderException
location: class Base64
W:\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
W:\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: W:\library\src\com\google\android\vending\licensing\LicenseChecker.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
19 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

BUILD FAILED in 4s

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
22 actionable tasks: 22 executed


C:\WINDOWS\system32\cmd.exe DONE (1)
C:\WINDOWS\system32\subst.exe /d W:


C:\WINDOWS\system32\subst.exe DONE (0)
Error : Build Failed
Igor complete.







any thoughts?
 

barthec

Member
Ok, so I worked on it. If anyone will have the same issue, go like this:

- DELETE GOOGLE SERVICES EXTENSIONS;
- ADD AGAIN EXTENSIONS FROM WEB MARKETPLACE;
- CHECK IN DETAILS if the Properties of extensions are good;
- CLEAR BUILD;
- RUN BUILD;

Be sure you don't mess with API version and build tools version. I made the mistake and tried to compile on API 29 with BuildTools 28.x.x. .Worked now with 29.0.0.3.

Cheers
 

barthec

Member
Guys, I received recently a message from yoyo that they are investigating the problem. What I did as a workaround is copy the java classes (extensions) from my 'old' project (GMS 2.2.4 location) and pasted them to new project extension folders. It works.
 
Y

Yeraf

Guest
Hola , yo tengo el mismo problema y hoy estamos 10 de Octubre del 2020 , no sé o no estoy seguro si ya se reparo el error o como puedo resolverlo , saludos , espero me puedan ayudar.Gracias.
 
Hey has there been any traction on this? I just ran into this bug myself. I have 3 games im trying to upgrade, and only one of them is running into this issue.
 
Top