I have an android app in which I am using Google Maps API for Android v2. It was working fine in my phone until I upgraded my phone to Marshmallow. After updating my phone o
What fixed it for me was deleting the debug.keystore file found in the .android folder.
figured it out after reading that the debug.keystore file expires after a year and the system needs you to delete so it can create a new one.
https://developer.android.com/tools/publishing/app-signing.html#expdebug
I was facing same problem after changing the system and project config.
Try these steps:
Goto File > Settings > Gradle
. Deselect Offline Work if it's checked.Then confirm if you have latest version of google services mentioned as dependencies in project level build.gradle:
classpath 'com.google.gms:google-services:2.1.0'.
You can find latest version here: https://jcenter.bintray.com/com/android/tools/build/gradle/
Clean and build the project after the gradle sync completes.
These steps solved the issue for me.
In case you've changed the system used for building this app, make sure to update the SHA1 in your project on Google Developer Console and update the Maps API key in your android project.
I had the same issue recently. What caused it for me was when the phone auto updated Google Play Services to version 9.0.83.
The only solution I found was uninstalling the update and allowing Google Play services to re-update.
To remove the update: Settings > Apps > Google Play services > Hit the three dots and uninstall updates. Then reinstall the updates through the play store.
Start the app and it should ask you to upgrade your Google Play services.
The version was originally 9.0.83 after doing these steps it downgraded to 8.7.03.
I don't feel like this is a solution since I have a few people testing my app and a few of them are having the same issue (the ones on version 9.0.83). I'm not too sure what changed with 9.0.83
This logcat warning is caused by a bug introduced in Google Play Services 9.x. It can be safely ignored, I don't believe it causes a crash, so your crash may be caused by a different issue. The message should go away with a future update to play services.
This issue has been acknowledged by an engineer at Google in the answer to this post.
I was also getting same exception and I fixed it.
Note: I am working on google analytics and was getting this exception. But my app was not crashing I was getting this in Logs. you can also try this solution.
add this in project level gradle file.
classpath 'com.google.gms:google-services:2.1.0'
and this one for module level gradle file.
compile 'com.google.android.gms:play-services:8.4.0'
and move `below plugin at the end of file (at last line) of module level gradle file.
apply plugin: 'com.google.gms.google-services'
`