Google Plus Login not working on Android 7 platform

Hello need help

My google login stopped working automatically. Facebook Authentication keeps working but Google Plus login stopped and login keeps failing

I created a new project and tested by following this link

In the new project, i cannot even build this new project i keep getting

Execution failed for task ':app:processDebugGoogleServices'.
> No matching client found for package name 'io.ionic.starter`Preformatted text`

Below is the FCM starter.build.gradle

buildscript {
    repositories {
        jcenter()
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:+'
        classpath 'com.google.gms:google-services:4.1.0'
    }
}
repositories {
    mavenCentral()
    maven {
        url "https://maven.google.com"
    }
}

dependencies {
    compile 'me.leolin:ShortcutBadger:1.1.4@aar'
    compile 'com.google.firebase:firebase-auth:+'
    compile('com.crashlytics.sdk.android:crashlytics:2.9.1@aar') {
       transitive = true
    }
}

cdvPluginPostBuildExtras.add({
    apply plugin: 'com.google.gms.google-services'
    apply plugin: 'io.fabric'
})

below is the full error log


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugGoogleServices'.
> No matching client found for package name 'io.ionic.starter'

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 44s
26 actionable tasks: 26 executed
(node:21800) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugGoogleServices'.
> No matching client found for package name 'io.ionic.starter'

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 44s
    at ChildProcess.whenDone (C:\Users\cyber\Documents\IonicRD\GoogleLoginTestV2\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23)
    at ChildProcess.emit (events.js:182:13)
    at maybeClose (internal/child_process.js:962:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
(node:21800) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:21800) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
PS C:\Users\cyber\Documents\IonicRD\GoogleLoginTestV2> ionic cordova build android--debug
> cordova platform add android--debug --save
Using cordova-fetch for android--debug
(node:5632) UnhandledPromiseRejectionWarning: CordovaError: Failed to fetch platform android--debug
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Error: cmd: Command failed with exit code 1 Error output:
npm ERR! code E404
npm ERR! 404 Not Found: android--debug@latest

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\cyber\AppData\Roaming\npm-cache\_logs\2018-12-26T06_56_51_299Z-debug.log
    at C:\Users\cyber\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\platform\addHelper.js:312:25
    at _rejected (C:\Users\cyber\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:797:24)
    at C:\Users\cyber\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:823:30
    at Promise.when (C:\Users\cyber\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:1142:31)
PS C:\Users\cyber\Documents\IonicRD\GoogleLoginTestV2> ionic cordova build android--debug
√ Creating .\www directory for you - done!
> cordova platform add android--debug --save
Using cordova-fetch for android--debug
(node:14104) UnhandledPromiseRejectionWarning: CordovaError: Failed to fetch platform android--debug
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Error: cmd: Command failed with exit code 1 Error output:
npm ERR! code E404
npm ERR! 404 Not Found: android--debug@latest

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\cyber\AppData\Roaming\npm-cache\_logs\2018-12-26T06_58_07_927Z-debug.log
    at C:\Users\cyber\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\platform\addHelper.js:312:25
    at _rejected (C:\Users\cyber\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:797:24)
    at C:\Users\cyber\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:823:30
    at Promise.when (C:\Users\cyber\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:1142:31)
    at Promise.promise.promiseDispatch (C:\Users\cyber\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:808:41)
    at C:\Users\cyber\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:624:44
    at runSingle (C:\Users\cyber\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:137:13)
    at flush (C:\Users\cyber\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:125:13)
    at process._tickCallback (internal/process/next_tick.js:61:11)
(node:14104) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:14104) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
> ng run app:ionic-cordova-build --platform=android--debug
 91% additional asset processing scripts-webpack-pluginENOENT: no such file or directory, open 'C:\Users\cyber\Documents\IonicRD\GoogleLoginTestV2\platforms\android--debug\platform_www\cordova.js'
Error: ENOENT: no such file or directory, open 'C:\Users\cyber\Documents\IonicRD\GoogleLoginTestV2\platforms\android--debug\platform_www\cordova.js'
    at Object.openSync (fs.js:436:3)
    at Object.readFileSync (fs.js:341:35)
    at Storage.provideSync (C:\Users\cyber\Documents\IonicRD\GoogleLoginTestV2\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:98:13)
    at CachedInputFileSystem.readFileSync (C:\Users\cyber\Documents\IonicRD\GoogleLoginTestV2\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:259:32)
    at Observable.rxjs_1.Observable.obs [as _subscribe] (C:\Users\cyber\Documents\IonicRD\GoogleLoginTestV2\node_modules\@ngtools\webpack\src\webpack-input-host.js:35:51)
    at Observable._trySubscribe (C:\Users\cyber\Documents\IonicRD\GoogleLoginTestV2\node_modules\rxjs\internal\Observable.js:44:25)
    at Observable.subscribe (C:\Users\cyber\Documents\IonicRD\GoogleLoginTestV2\node_modules\rxjs\internal\Observable.js:30:22)
    at SyncDelegateHost._doSyncCall (C:\Users\cyber\Documents\IonicRD\GoogleLoginTestV2\node_modules\@angular-devkit\core\src\virtual-fs\host\sync.js:22:20)
    at SyncDelegateHost.read (C:\Users\cyber\Documents\IonicRD\GoogleLoginTestV2\node_modules\@angular-devkit\core\src\virtual-fs\host\sync.js:49:21)
    at WebpackCompilerHost.readFileBuffer (C:\Users\cyber\Documents\IonicRD\GoogleLoginTestV2\node_modules\@ngtools\webpack\src\compiler_host.js:124:44)
    at VirtualFileSystemDecorator.readFile (C:\Users\cyber\Documents\IonicRD\GoogleLoginTestV2\node_modules\@ngtools\webpack\src\virtual_file_system_decorator.js:39:54)
    at Promise (C:\Users\cyber\Documents\IonicRD\GoogleLoginTestV2\node_modules\@angular-devkit\build-angular\src\angular-cli-files\plugins\scripts-webpack-plugin.js:92:49)
    at new Promise (<anonymous>)
    at scripts.map.fullPath (C:\Users\cyber\Documents\IonicRD\GoogleLoginTestV2\node_modules\@angular-devkit\build-angular\src\angular-cli-files\plugins\scripts-webpack-plugin.js:91:24)
    at Array.map (<anonymous>)
    at hook (C:\Users\cyber\Documents\IonicRD\GoogleLoginTestV2\node_modules\@angular-devkit\build-angular\src\angular-cli-files\plugins\scripts-webpack-plugin.js:90:43)
[ERROR] An error occurred while running subprocess ng.

        ng run app:ionic-cordova-build --platform=android--debug exited with exit code 1.

Any help will be greatly appreciated

Hello,
I have the same problem.
Did you find a solution?

I did is the debug apk file that gets produced mine had the wrong Sha key. I added the new key in Google and it worked

do this to get the certificate from your debug apk

keytool -list -printcert -jarfile platforms/android/build/outputs/apk/android-debug.apk

Hope this helps you