russmedia-digital / cordova-plugin-google-signin

Cordova Google SignIn
Apache License 2.0
11 stars 29 forks source link

Build Fails with Cordova Android Platform 12 #14

Closed macsplit closed 8 months ago

macsplit commented 1 year ago

System

To reproduce

  1. Create a new Cordova project
  2. Add Android Platform 12
  3. Install plugin
  4. Download google-services.json file from Firebase console
  5. Add a resource-file entry under android platform in config.xml (this step maybe optional)
  6. Build project

Result

> Task :app:mapDebugSourceSetPaths FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mapDebugSourceSetPaths'.
> Error while evaluating property 'extraGeneratedResDir' of task ':app:mapDebugSourceSetPaths'.
   > Failed to calculate the value of task ':app:mapDebugSourceSetPaths' property 'extraGeneratedResDir'.
      > Querying the mapped value of provider(java.util.Set) before task ':app:processDebugGoogleServices' has completed is not supported

Following these steps built okay, and worked when using Android Platform 11

Motivation

Google Play will require targeting Android API level 33 very soon. Cordova Android 11 targets 32 whereas 12 targets 33.