问题描述
从那时起,我做了两件事:
生成签名的apk。
尝试将其部署到6.0设备。
我不知道发生了什么,但是现在google api甚至在我的原始设备上也不工作。 / p>
这是错误日志的一部分,我认为问题在于:
V / GoogleSignatureVerifier:com.google.android.gms签名无效。实测值:
MIIEQzCCAyugAwIBAgIJAMLgh0ZkSjCNMA0GCSqGSIb3DQEBBAUAMHQxCzAJBgNVBAYTAlVTMRMw
EQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtHb29n
bGUgSW5jLjEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDAeFw0wODA4MjEyMzEz
MzRaFw0zNjAxMDcyMzEzMzRaMHQxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYw
FAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtHb29nbGUgSW5jLjEQMA4GA1UECxMHQW5k
cm9pZDEQMA4GA1UEAxMHQW5kcm9pZDCCASAwDQYJKoZIhvcNAQEBBQADggENADCCAQgCggEBAKtW
LgDYO6IIrgqWbxJOKdoR8qtW0I9Y4sypEwPpt1TTcvZApxsdyxMJZ2JORland2qSGT2y5b + 3JKke
dxiLDmpHpDsz2WCbdxgxRczfey5YZnTJ4VZbH0xqWVW / 8lGmPav5xVwnIiJS6HXk + BVKZF + JcWjA
SB / GEuq / eFdpuzSqeYTcfi6idkyugwfYwXFU1 + 5fZKUaRKYCwkkFQVfcAs1fXA5V +++ FGfvjJ / CX
URaSxaBvGdGDhfXE28LWuT9ozCl5xw4Yq5OGazvV24mZVSoOO0yZ31j7kYvtwYK6NeADwbSxDdJE
qO4k // 0zOHKrUiGYXtqw / A0LFFtqoZKFjnkCAQOjgdkwgdYwHQYDVR0OBBYEFMd9jMIhF1Ylmn / T
gt9r45jk14alMIGmBgNVHSMEgZ4wgZuAFMd9jMIhF1Ylmn / Tgt9r45jk14aloXikdjB0MQswC QYD
VQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIG
A1UEChMLR29vZ2xlIEluYy4xEDAOBgNVBAsTB0FuZHJvaWQxEDAOBgNVBAMTB0FuZHJvaWSCCQDC
4IdGZEowjTAMBgNVHRMEBTADAQH / MA0GCSqGSIb3DQEBBAUAA4IBAQBt0lLO74UwLDYKqs6Tm8 / Y
zKkEu116FmH4rkaymUIE0P9KaMftGlMexFlaYjzmB2OxZyl6euNXEsQH8gjwyxCUKRJNexBiGcCE
yj6z + a1fuHHvkiaai + KL8W1EyNmgjmyy8AW7P + LLlkR + ho5zEHatRbM / YAnqGcFh5iZBqpknHf1S
KMXFh4dd239FJ1jWYfbMDMy3NS5CTMQ2XFI1MvcyUTdZPErjQfTbQe3aDQsQcafEQPD + nqActifK
Z0Np0IS9L9kR / wbNvyz6ENwPiTrjV2KRkEjH78ZMcUQXg0L3BYHJ3lc69Vs5Ddf9uUGGMYldX3Wf
MBEmh / 9iFBDAaTCK
05-18 11:44:43.691 2786-2865 / born.speedsteer03 E / DynamiteModule:无法加载模块描述符类:找不到类com.google .android.gms.dynamite.descriptors.com.google.android.gms.googlecertificates.ModuleDescriptoron path:DexPathList [[zip file'/data/app/born.speedsteer03-2/base.apk],nativeLibraryDirectories = [ / vendor / lib,/ system / lib]]
05-18 11:44:43.696 2786-28 65 / born.speedsteer03 I / DynamiteModule:考虑到本地模块com.google.android.gms.googlecertificates:0和远程模块com.google.android.gms.googlecertificates:1
好吧,如果我没有错,你可能在Google api控制台上配置了一些哈希键(Shah 1) Google API。
它通过调试密钥库(其证书)在您的模拟器或设备上工作,因为您配置的密钥是调试密钥库。
现在您已经生成已签名的apk并安装完毕,您需要在Google api控制台添加已签名的keystore Sha1密钥。
故事是您可以用于开发目的的调试密钥库sha1。如果生成单独的apk文件,你需要单独的sha1。
My app was working fine with position updates on a device with 5.1.
Since then, I made two things:Generating a signed apk.Trying to deploy it to a 6.0 device.
I don't know what happened, but now google api's are not working even on my original device.
This is the part of the error log I think where problem is:
V/GoogleSignatureVerifier: com.google.android.gms signature not valid. Found:
MIIEQzCCAyugAwIBAgIJAMLgh0ZkSjCNMA0GCSqGSIb3DQEBBAUAMHQxCzAJBgNVBAYTAlVTMRMw
EQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtHb29n
bGUgSW5jLjEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDAeFw0wODA4MjEyMzEz
MzRaFw0zNjAxMDcyMzEzMzRaMHQxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYw
FAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtHb29nbGUgSW5jLjEQMA4GA1UECxMHQW5k
cm9pZDEQMA4GA1UEAxMHQW5kcm9pZDCCASAwDQYJKoZIhvcNAQEBBQADggENADCCAQgCggEBAKtW
LgDYO6IIrgqWbxJOKdoR8qtW0I9Y4sypEwPpt1TTcvZApxsdyxMJZ2JORland2qSGT2y5b+3JKke
dxiLDmpHpDsz2WCbdxgxRczfey5YZnTJ4VZbH0xqWVW/8lGmPav5xVwnIiJS6HXk+BVKZF+JcWjA
sb/GEuq/eFdpuzSqeYTcfi6idkyugwfYwXFU1+5fZKUaRKYCwkkFQVfcAs1fXA5V+++FGfvjJ/Cx
URaSxaBvGdGDhfXE28LWuT9ozCl5xw4Yq5OGazvV24mZVSoOO0yZ31j7kYvtwYK6NeADwbSxDdJE
qO4k//0zOHKrUiGYXtqw/A0LFFtqoZKFjnkCAQOjgdkwgdYwHQYDVR0OBBYEFMd9jMIhF1Ylmn/T
gt9r45jk14alMIGmBgNVHSMEgZ4wgZuAFMd9jMIhF1Ylmn/Tgt9r45jk14aloXikdjB0MQswCQYD
VQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIG
A1UEChMLR29vZ2xlIEluYy4xEDAOBgNVBAsTB0FuZHJvaWQxEDAOBgNVBAMTB0FuZHJvaWSCCQDC
4IdGZEowjTAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBAUAA4IBAQBt0lLO74UwLDYKqs6Tm8/y
zKkEu116FmH4rkaymUIE0P9KaMftGlMexFlaYjzmB2OxZyl6euNXEsQH8gjwyxCUKRJNexBiGcCE
yj6z+a1fuHHvkiaai+KL8W1EyNmgjmyy8AW7P+LLlkR+ho5zEHatRbM/YAnqGcFh5iZBqpknHf1S
KMXFh4dd239FJ1jWYfbMDMy3NS5CTMQ2XFI1MvcyUTdZPErjQfTbQe3aDQsQcafEQPD+nqActifK
Z0Np0IS9L9kR/wbNvyz6ENwPiTrjV2KRkEjH78ZMcUQXg0L3BYHJ3lc69Vs5Ddf9uUGGMYldX3Wf
MBEmh/9iFBDAaTCK
05-18 11:44:43.691 2786-2865/born.speedsteer03 E/DynamiteModule: Failed to load module descriptor class: Didn't find class "com.google.android.gms.dynamite.descriptors.com.google.android.gms.googlecertificates.ModuleDescriptor" on path: DexPathList[[zip file "/data/app/born.speedsteer03-2/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
05-18 11:44:43.696 2786-2865/born.speedsteer03 I/DynamiteModule: Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:1
Well if I'm not wrong you might have configured some hash key (Shah 1)at Google api console to use Google APIs.
Its working on your simulator or device through debug keystore(its a certificate) because you configured key is debug keystore one.
Now you have generated signed apk and installed, you need add signed keystore Sha1 key to at Google api console.
Story is debug keystore sha1 you can use for development purpose. If generate singed apk file you need it's sha1 separately.
这篇关于为什么我的签名在Google Maps Android API上无效?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!