Open y-nut opened 5 years ago
This could be related to Google shutting down GooglePlus,
Google+ APIs will be shut down on March 7, 2019. This includes Google+ Sign-in and OAuth token requests with Google+ scopes. Learn more.
Google+ integrations for web and mobile apps will also cease to function March 7, 2019. Learn more.
This will be a progressive shutdown, with intermittent failures starting as early as January 28, 2019.
https://developers.google.com/+/mobile/android/api-deprecation
Having the same issue. Can I use Google SignIn and skip everything with GooglePlus?
Fixed by the following in build.gradle (app):
compile "com.google.android.gms:play-services-auth:+" compile "com.google.android.gms:play-services-identity:+"
And build.gradle (android):
classpath 'com.google.gms:google-services:4.2.0'
@marcus13371337 Could you please offer some insights about the gradle-file structure? Where exactly did you add those lines?
This happened when I upgraded to cordova-android8.0.0 and cordova9.0.0 Was able to resolve most of the build issues but google login was not working.
Updating in project.properties worked for me. Here are my updated file content
buildscript {
repositories {
google()
jcenter()
maven { url 'https://maven.fabric.io/public' } // Fabrics Maven repository from cordova-plugin-firebase
}
dependencies {
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.android.tools.build:gradle:3.3.0'
classpath 'com.google.gms:google-services:4.2.0' // google-services dependency from cordova-plugin-firebase
classpath 'io.fabric.tools:gradle:1.25.4' // fabric dependency from cordova-plugin-firebase
}
}
# Project target.
target=android-28
android.library.reference.1=CordovaLib
android.library.reference.2=app
cordova.gradle.include.1=cordova-plugin-firebase/ichampapp-build.gradle
cordova.system.library.1=com.facebook.android:facebook-android-sdk:4.37.0
cordova.system.library.2=com.google.android.gms:play-services-tagmanager:+
cordova.system.library.3=com.google.firebase:firebase-core:+
cordova.system.library.4=com.google.firebase:firebase-messaging:+
cordova.system.library.5=com.google.firebase:firebase-config:+
cordova.system.library.6=com.google.firebase:firebase-perf:+
cordova.system.library.7=com.google.android.gms:play-services-auth:+
cordova.system.library.8=com.google.android.gms:play-services-identity:+
cordova.system.library.9=androidx.annotation:annotation:1.0.0
cordova.system.library.10=androidx.legacy:legacy-support-v4:1.0.0
cordova.system.library.11=androidx.legacy:legacy-support-v4:1.0.0
cordova.system.library.12=androidx.appcompat:appcompat:1.0.0
exception got resolved, but google login still not working
same issue here
android > app > capacitor.build.gradle
implementation "com.google.android.gms:play-services-auth:16.0.1"
implementation "com.google.android.gms:play-services-identity:16.0.0"