GoogleSignatureVerifier 签名无效消息(google play services 9.0.0)

我最近更新到谷歌播放服务库版本9.0.0,我不断得到以下 logcat 信息:

05-19 23:07:30.023 19237-19508/? V/GoogleSignatureVerifier: options.developer.com.developeroptions signature not valid.  Found:

虽然我的应用程序没有使用谷歌地图应用程序接口,但它是使用分析,广告,和谷歌 + 应用程序接口。

文档中唯一提到的关于使用 api 键的地方是在使用 google 地图或 android 地方 api 时。

我也试过用正确的键添加‘ com.google.android.ge.API _ KEY’,但是没有用。

这是我的 gradle.build 文件:

apply plugin: 'com.android.application'


android {
compileSdkVersion 23
buildToolsVersion "23.0.3"


defaultConfig {
applicationId "options.developer.com.developeroptions"
minSdkVersion 9
targetSdkVersion 23
versionCode 23
versionName "1.06"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}




dependencies {
compile 'com.google.android.gms:play-services-plus:9.0.0'
compile 'com.android.support:appcompat-v7:23.2.0'
compile 'com.google.android.gms:play-services-analytics:9.0.0'
compile 'com.google.android.gms:play-services-ads:9.0.0'
}
41212 次浏览

Sorry, thats a bug! It's just spurious logging though: Google Play services does some checking to see whether you are a Google app or a regular third party one.

As part of that, it calls the signature verifier and the logging ended up more verbose than intended - it will be fixed in a future version.This shouldn't affect the behavior of your app at all.

You will find a lot of solutions on the net, but the only one who works for me was to downgrade the Google Play Services to 8.7.02 version on my devices. I hope Google will fix this error rapidly :')

I had to update the gms library to 9.0.1 and delete all the saved data from google play services on my phone and the logs weren't displaying anymore. They were causing me AND state in my app before, which was giving me major headaches why this was happening.

As mentioned in the other answers, its the Google Play Services 9 update to the device. You can have these options until google fix the bug:

  • Safely ignore it

  • Downgrade your phone/device using Settings->Apps->Google play services->(three dots on top right menu)->Uninstall

    If the Disable/Force Stop buttons are greyed out you may need to remove the app from being a 'device administrator' before uninstalling it.

Google plus blog relating to the bug: https://plus.google.com/+ChristopheBeyls/posts/LC2XCSoaVBJ

Removing/Recreating the keystore.debug file is unlikely to help. If you've done this already then you'll need to create a new one using the 'map api developer console'

  1. make sure you entered your SHA sinature and package name correctly.

  2. make sure you have enabled your GoogleMaps Api in your ApiManager>Overview after creating your project in api console(search it in google)

  3. make sure you have allowed internet permissions in your manifest file

  4. in your build file use compile 'com.google.android.gms:play-services:9.0.1' (works for me)

In my case i missed out step 3 .