This is when I try to Export to Android Cordova for Android Signed App Bundle, that used to work fine and I don't remember changing much or adding anything new in my game.
Error: Checking Java JDK and Android SDK versions
ANDROID_HOME=~~/androidSDK (recommended setting)
ANDROID_SDK_ROOT=undefined (DEPRECATED)
Using Android SDK: ~~/androidSDK
Task :wrapper
BUILD SUCCESSFUL in 1s
1 actionable task: 1 executed
Subproject Path: CordovaLib
Subproject Path: app
[========= ] 25% [========= ] 25% Fetch remote repository... [=======================================] 100% Fetch remote repository...
Checking the license for package Android SDK Platform-Tools in ~~/licenses
License for package Android SDK Platform-Tools accepted.
Preparing "Install Android SDK Platform-Tools v.37.0.1".
Warning: Failed to read or create install properties file.
WARNING: platform-tools package is not installed, and automatic installation failed.
Task :app:preBuild UP-TO-DATE
Task :app:preReleaseBuild UP-TO-DATE
Task :app:generateReleaseResValues
Task :CordovaLib:preBuild UP-TO-DATE
Task :CordovaLib:preReleaseBuild UP-TO-DATE
Task :CordovaLib:generateReleaseResValues
Task :CordovaLib:generateReleaseResources
Task :CordovaLib:packageReleaseResources
Task :app:mapReleaseSourceSetPaths
Task :app:generateReleaseResources
Task :app:mergeReleaseResources
Task :app:createReleaseCompatibleScreenManifests
Task :app:extractDeepLinksRelease
Task :CordovaLib:extractDeepLinksRelease
Task :CordovaLib:processReleaseManifest
Task :app:processReleaseMainManifest
Task :app:processReleaseManifest
Task :app:processApplicationManifestReleaseForBundle
Task :CordovaLib:writeReleaseAarMetadata
Task :app:checkReleaseAarMetadata
Task :app:packageReleaseResources
Task :app:parseReleaseLocalResources
Task :app:processReleaseManifestForPackage
Task :CordovaLib:compileReleaseLibraryResources
Task :CordovaLib:parseReleaseLocalResources
Task :CordovaLib:generateReleaseRFile
Task :app:processReleaseResources
Task :app:bundleReleaseResources
Task :app:extractReleaseVersionControlInfo
Task :CordovaLib:javaPreCompileRelease
Task :CordovaLib:compileReleaseJavaWithJavac
Task :CordovaLib:bundleLibRuntimeToDirRelease
Task :app:checkReleaseDuplicateClasses
Task :app:generateReleaseBuildConfig
Task :app:javaPreCompileRelease
Task :CordovaLib:bundleLibCompileToJarRelease
Task :app:compileReleaseJavaWithJavac FAILED
[Incubating] Problems report is available at: file://~~/problems-report.html
33 actionable tasks: 33 executed
Running as unit: run-r0c04bf2c2ecf4f34a82ec77d519fc931.scope; invocation ID: a913757428834b2f9e77a956419fb791
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
~~/GooglePlus.java:15: error: cannot find symbol
import com.google.android.gms.auth.api.signin.GoogleSignInResult;
^
symbol: class GoogleSignInResult
location: package com.google.android.gms.auth.api.signin
~~/GooglePlus.java:313: error: cannot find symbol
private void handleSignInResult(final GoogleSignInResult signInResult) {
^
symbol: class GoogleSignInResult
location: class GooglePlus
~~/GooglePlus.java:91: error: cannot find symbol
handleSignInResult(Auth.GoogleSignInApi.getSignInResultFromIntent(intent));
^
symbol: variable GoogleSignInApi
location: class Auth
~~/GooglePlus.java:200: error: cannot find symbol
.addApi(Auth.GOOGLE_SIGN_IN_API, gso.build());
^
symbol: variable GOOGLE_SIGN_IN_API
location: class Auth
~~/GooglePlus.java:214: error: cannot find symbol
Intent signInIntent = Auth.GoogleSignInApi.getSignInIntent(this.mGoogleApiClient);
^
symbol: variable GoogleSignInApi
location: class Auth
~~/GooglePlus.java:225: error: cannot find symbol
handleSignInResult(Auth.GoogleSignInApi.silentSignIn(this.mGoogleApiClient).await());
^
symbol: variable GoogleSignInApi
location: class Auth
~~/GooglePlus.java:241: error: cannot find symbol
Auth.GoogleSignInApi.signOut(this.mGoogleApiClient).setResultCallback(
^
symbol: variable GoogleSignInApi
location: class Auth
~~/GooglePlus.java:269: error: cannot find symbol
Auth.GoogleSignInApi.revokeAccess(this.mGoogleApiClient).setResultCallback(
^
symbol: variable GoogleSignInApi
location: class Auth
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: ~~/ConstructPlayGames.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
8 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileReleaseJavaWithJavac'.
Compilation failed; see the compiler output below.
Note: Recompile with -Xlint:deprecation for details.
Note: ~~/ConstructPlayGames.java uses unchecked or unsafe operations.
~~/GooglePlus.java:15: error: cannot find symbol
import com.google.android.gms.auth.api.signin.GoogleSignInResult;
^
symbol: class GoogleSignInResult
location: package com.google.android.gms.auth.api.signin
~~/GooglePlus.java:313: error: cannot find symbol
private void handleSignInResult(final GoogleSignInResult signInResult) {
^
symbol: class GoogleSignInResult
location: class GooglePlus
~~/GooglePlus.java:91: error: cannot find symbol
handleSignInResult(Auth.GoogleSignInApi.getSignInResultFromIntent(intent));
^
symbol: variable GoogleSignInApi
location: class Auth
~~/GooglePlus.java:200: error: cannot find symbol
.addApi(Auth.GOOGLE_SIGN_IN_API, gso.build());
^
symbol: variable GOOGLE_SIGN_IN_API
location: class Auth
~~/GooglePlus.java:214: error: cannot find symbol
Intent signInIntent = Auth.GoogleSignInApi.getSignInIntent(this.mGoogleApiClient);
^
symbol: variable GoogleSignInApi
location: class Auth
~~/GooglePlus.java:225: error: cannot find symbol
handleSignInResult(Auth.GoogleSignInApi.silentSignIn(this.mGoogleApiClient).await());
^
symbol: variable GoogleSignInApi
location: class Auth
~~/GooglePlus.java:241: error: cannot find symbol
Auth.GoogleSignInApi.signOut(this.mGoogleApiClient).setResultCallback(
^
symbol: variable GoogleSignInApi
location: class Auth
~~/GooglePlus.java:269: error: cannot find symbol
Auth.GoogleSignInApi.revokeAccess(this.mGoogleApiClient).setResultCallback(
^
symbol: variable GoogleSignInApi
location: class Auth
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
8 errors
* Try:
Check your code and dependencies to fix the compilation error(s)
Run with --scan to get full insights.
BUILD FAILED in 6s
Command failed with exit code 1: ~~/gradlew :app:bundleRelease