Android app is crashing due to V/GoogleSignatureVerifier: Signature not valid

后端 未结 5 1943
庸人自扰
庸人自扰 2020-12-04 10:51

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

5条回答
  •  北荒
    北荒 (楼主)
    2020-12-04 11:31

    I was facing same problem after changing the system and project config.
    Try these steps:

    1. Check if you have enabled offline work for gradle: Goto File > Settings > Gradle. Deselect Offline Work if it's checked.
    2. 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/

    3. 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.

提交回复
热议问题