GoogleSignatureVerifier签名无效消息(谷歌游戏服务9.0.0)

时间:2022-07-05 15:23:52

I have recently updated to the google play services library version 9.0.0, and I keep getting the following logcat message:

我最近更新到谷歌游戏服务库版本9.0.0,我一直得到以下的logcat消息:

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

While my app isn't using the google maps api but it is using the analytics, ads, and google plus apis.

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

The only mention in the documentation regarding the usage of the api key is when using google maps, or android places api.

在文档中,关于api key的使用的唯一提及是使用谷歌映射,或者android places api。

I have also tried adding the 'com.google.android.geo.API_KEY' with a correct key but it didn't help.

我还试过添加“com.google.android.geo”。用正确的钥匙,但没有用。

here is my gradle.build file:

这是我的它。构建文件:

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'
}

5 个解决方案

#1


173  

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.

作为其中的一部分,它调用了签名验证器,而日志记录的结果比预期的更加冗长——它将在将来的版本中被修复。这不会影响你的应用程序的行为。

#2


2  

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 :')

你会在网上找到很多解决方案,但是我唯一的工作就是把谷歌的游戏服务降级到8.7.02版本。我希望谷歌能迅速修正这个错误:

#3


1  

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:

正如在其他答案中提到的,它的谷歌播放服务9更新到设备。您可以有这些选项,直到谷歌修复错误:

  • Safely ignore it

    忽略它

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

    降级你的手机/设备使用设置->应用->谷歌play services->(右上角的三个点)->卸载。

    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

谷歌plus博客与漏洞相关: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'

删除/重新创建密钥存储。调试文件不太可能有帮助。如果您已经这样做了,那么您将需要使用“map api开发人员控制台”创建一个新的

#4


1  

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

    确保您正确输入了您的SHA sinature和包名。

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

    在Api控制台创建项目后,确保您的GoogleMaps Api在ApiManager>概述(在谷歌中搜索)

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

    确保您在清单文件中允许了internet权限。

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

    在您的构建文件中使用编译'com.google.android.gms:play-services:9.0.1'(为我工作)

In my case i missed out step 3 .

在我的例子中,我错过了第3步。

#5


0  

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.

我必须将gms库更新到9.0.1,并将所有从谷歌中保存的数据从我的手机上删除,而这些日志不再显示。他们在我的应用程序中引起了我和状态,这让我很头疼为什么会这样。

#1


173  

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.

作为其中的一部分,它调用了签名验证器,而日志记录的结果比预期的更加冗长——它将在将来的版本中被修复。这不会影响你的应用程序的行为。

#2


2  

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 :')

你会在网上找到很多解决方案,但是我唯一的工作就是把谷歌的游戏服务降级到8.7.02版本。我希望谷歌能迅速修正这个错误:

#3


1  

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:

正如在其他答案中提到的,它的谷歌播放服务9更新到设备。您可以有这些选项,直到谷歌修复错误:

  • Safely ignore it

    忽略它

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

    降级你的手机/设备使用设置->应用->谷歌play services->(右上角的三个点)->卸载。

    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

谷歌plus博客与漏洞相关: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'

删除/重新创建密钥存储。调试文件不太可能有帮助。如果您已经这样做了,那么您将需要使用“map api开发人员控制台”创建一个新的

#4


1  

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

    确保您正确输入了您的SHA sinature和包名。

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

    在Api控制台创建项目后,确保您的GoogleMaps Api在ApiManager>概述(在谷歌中搜索)

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

    确保您在清单文件中允许了internet权限。

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

    在您的构建文件中使用编译'com.google.android.gms:play-services:9.0.1'(为我工作)

In my case i missed out step 3 .

在我的例子中,我错过了第3步。

#5


0  

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.

我必须将gms库更新到9.0.1,并将所有从谷歌中保存的数据从我的手机上删除,而这些日志不再显示。他们在我的应用程序中引起了我和状态,这让我很头疼为什么会这样。