两个月前我用Gmaps服务发布了一个应用程序,它运行正常,但有些日子应用程序停止了它的工作!现在地图显得空白,我不知道是什么...我试图重新编译和控制api键,但一切都好!所以当我现在编译时会出现错误:
05-23 15:43:00.389 13762-13762/vs.realitycompany W/System: ClassLoader referenced unknown path: /data/app/vs.realitycompany-1/lib/arm
05-23 15:43:00.548 13762-13762/vs.realitycompany I/GMPM: App measurement is starting up, version: 8487
05-23 15:43:00.548 13762-13762/vs.realitycompany I/GMPM: To enable debug logging run: adb shell setprop log.tag.GMPM VERBOSE
05-23 15:43:00.560 13762-13762/vs.realitycompany E/GMPM: GoogleService failed to initialize, status: 10, Missing an expected resource: 'R.string.google_app_id' for initializing Google services. Possible causes are missing google-services.json or com.google.gms.google-services gradle plugin.
05-23 15:43:00.560 13762-13762/vs.realitycompany E/GMPM: Scheduler not set. Not logging error/warn.
05-23 15:43:00.617 13762-14730/vs.realitycompany E/GMPM: Uploading is not possible. App measurement disabled
05-23 15:43:00.938 13762-14738/vs.realitycompany D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
05-23 15:43:00.981 13762-14738/vs.realitycompany I/Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: EGL 1.4 QUALCOMM build: Nondeterministic_AU_msm8974_LA.BF.1.1.3_RB1__release_AU (Ia6c73e7530)
OpenGL ES Shader Compiler Version: E031.29.00.00
Build Date: 12/04/15 Fri
Local Branch: mybranch17080070
Remote Branch: quic/LA.BF.1.1.3_rb1.5
Local Patches: NONE
Reconstruct Branch: NOTHING
05-23 15:43:00.982 13762-14738/vs.realitycompany I/OpenGLRenderer: Initialized EGL, version 1.4
05-23 15:43:03.759 13762-13762/vs.realitycompany I/zzad: Making Creator dynamically
05-23 15:43:03.793 13762-13762/vs.realitycompany D/ChimeraCfgMgr: Reading stored module config
05-23 15:43:03.817 13762-13762/vs.realitycompany W/System: ClassLoader referenced unknown path: /data/user/0/com.google.android.gms/app_chimera/m/00000001/n/armeabi-v7a
05-23 15:43:03.817 13762-13762/vs.realitycompany W/System: ClassLoader referenced unknown path: /data/user/0/com.google.android.gms/app_chimera/m/00000001/n/armeabi
05-23 15:43:03.818 13762-13762/vs.realitycompany D/ChimeraFileApk: Primary ABI of requesting process is armeabi-v7a
05-23 15:43:03.819 13762-13762/vs.realitycompany D/ChimeraFileApk: Classloading successful. Optimized code found.
05-23 15:43:03.853 13762-13762/vs.realitycompany I/Google Maps Android API: Google Play services client version: 8487000
05-23 15:43:03.859 13762-13762/vs.realitycompany I/Google Maps Android API: Google Play services package version: 9083438
05-23 15:43:04.202 13762-13762/vs.realitycompany I/Choreographer: Skipped 32 frames! The application may be doing too much work on its main thread.
05-23 15:43:04.222 13762-14843/vs.realitycompany I/b: Sending API token request.
05-23 15:43:04.484 13762-14843/vs.realitycompany E/b: Authentication failed on the server.
05-23 15:43:04.484 13762-14843/vs.realitycompany E/Google Maps Android API: Authorization failure. Please see https://developers.google.com/maps/documentation/android-api/start for how to correctly set up the map.
05-23 15:43:04.485 13762-14843/vs.realitycompany E/Google Maps Android API: In the Google Developer Console (https://console.developers.google.com)
Ensure that the "Google Maps Android API v2" is enabled.
Ensure that the following Android Key exists:
API Key: AIzaSyCPsPVsNjqAizEyBzu1w8_6EGlZHKfSAbQ
Android Application (<cert_fingerprint>;<package_name>): 38:10:51:0C:63:CA:8E:34:84:EE:E5:9B:4F:72:AF:61:8A:5A:E3:15;vs.realitycompany
05-23 15:43:06.176 13762-14839/vs.realitycompany V/GoogleSignatureVerifier: com.google.android.gms signature not valid. Found:
MIIEQzCCAyugAwIBAgIJAMLgh0ZkSjCNMA0GCSqGSIb3DQEBBAUAMHQxCzAJBgNVBAYTAlVTMRMw
EQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtHb29n
bGUgSW5jLjEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDAeFw0wODA4MjEyMzEz
MzRaFw0zNjAx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KMXFh4dd239FJ1jWYfbMDMy3NS5CTMQ2XFI1MvcyUTdZPErjQfTbQe3aDQsQcafEQPD+nqActifK
Z0Np0IS9L9kR/wbNvyz6ENwPiTrjV2KRkEjH78ZMcUQXg0L3BYHJ3lc69Vs5Ddf9uUGGMYldX3Wf
MBEmh/9iFBDAaTCK
05-23 15:43:06.195 13762-14839/vs.realitycompany 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/vs.realitycompany-1/base.apk"],nativeLibraryDirectories=[/data/app/vs.realitycompany-1/lib/arm, /vendor/lib, /system/lib]]
05-23 15:43:06.201 13762-14839/vs.realitycompany I/DynamiteModule: Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:1
05-23 15:43:06.201 13762-14839/vs.realitycompany I/DynamiteModule: Selected remote version of com.google.android.gms.googlecertificates, version >= 1
05-23 15:43:06.212 13762-14839/vs.realitycompany W/System: ClassLoader referenced unknown path: /data/user/0/com.google.android.gms/app_chimera/m/00000000/n/armeabi
05-23 15:43:06.213 13762-14839/vs.realitycompany D/ChimeraFileApk: Primary ABI of requesting process is armeabi-v7a
05-23 15:43:06.215 13762-14839/vs.realitycompany D/ChimeraFileApk: Classloading successful. Optimized code found.
05-23 15:43:06.219 13762-14839/vs.realitycompany D/GoogleCertificates: com.google.android.gms.googlecertificates module is loaded
05-23 15:43:06.298 13762-14839/vs.realitycompany D/GoogleCertificatesImpl: Fetched 154 Google release certificates
05-23 15:43:06.304 13762-14839/vs.realitycompany V/GoogleSignatureVerifier: vs.realitycompany signature not valid. Found:
MIIB3TCCAUYCAQEwDQYJKoZIhvcNAQEFBQAwNzEWMBQGA1UEAwwNQW5kcm9pZCBEZWJ1ZzEQMA4G
A1UECgwHQW5kcm9pZDELMAkGA1UEBhMCVVMwHhcNMTYwNTIyMjAyNzM5WhcNNDYwNTE1MjAyNzM5
WjA3MRYwFAYDVQQDDA1BbmRyb2lkIERlYnVnMRAwDgYDVQQKDAdBbmRyb2lkMQswCQYDVQQGEwJV
UzCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAj+2RpluWlva2H85SRcYtZX7E4dQY/GSAgdEs
OaaZLP8yzPo0OOaGUdNz+ZI1uY7CaAX9i+EsOsUZXA0St9w7u7jUpAnt3DSBOLCjH+m/fc3QErBr
c3aDBQ7e34fzMr22d7grgIfe4Lje33qASiuAOYcs25wF8fK19qsFFrkkW/kCAwEAATANBgkqhkiG
9w0BAQUFAAOBgQAYPncLTg3aEIZVs94qrk+QiuugbBWrHcHDf68/fZvCZW0JIeYnCRo4KOHjSWzR
Ppv8DduDZUZs6rIK4Bo+MLts/G+5DqlV60tDAd8vUO0YEWKtTeiY4oIY5QE1TnVDPILBcy2OCBCP
6I7lG7DiJC3s+xuGx07HxV57j2TGtxlQ7w==
05-23 15:43:06.304 13762-14839/vs.realitycompany D/GoogleCertificatesImpl: Fetched 300 Google certificates
05-23 15:43:06.313 13762-14839/vs.realitycompany V/GoogleSignatureVerifier: vs.realitycompany signature not valid. Found:
MIIB3TCCAUYCAQEwDQYJKoZIhvcNAQEFBQAwNzEWMBQGA1UEAwwNQW5kcm9pZCBEZWJ1ZzEQMA4G
A1UECgwHQW5kcm9pZDELMAkGA1UEBhMCVVMwHhcNMTYwNTIyMjAyNzM5WhcNNDYwNTE1MjAyNzM5
WjA3MRYwFAYDVQQDDA1BbmRyb2lkIERlYnVnMRAwDgYDVQQKDAdBbmRyb2lkMQswCQYDVQQGEwJV
UzCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAj+2RpluWlva2H85SRcYtZX7E4dQY/GSAgdEs
OaaZLP8yzPo0OOaGUdNz+ZI1uY7CaAX9i+EsOsUZXA0St9w7u7jUpAnt3DSBOLCjH+m/fc3QErBr
c3aDBQ7e34fzMr22d7grgIfe4Lje33qASiuAOYcs25wF8fK19qsFFrkkW/kCAwEAATANBgkqhkiG
9w0BAQUFAAOBgQAYPncLTg3aEIZVs94qrk+QiuugbBWrHcHDf68/fZvCZW0JIeYnCRo4KOHjSWzR
Ppv8DduDZUZs6rIK4Bo+MLts/G+5DqlV60tDAd8vUO0YEWKtTeiY4oIY5QE1TnVDPILBcy2OCBCP
6I7lG7DiJC3s+xuGx07HxV57j2TGtxlQ7w==
我能做什么? 只有最后一件事,我注意到没有google_maps_api.xml用于发布(仅用于调试)。这个问题是否可能因缺少google_maps_api.xml而引起?有什么可以解决这个问题?
答案 0 :(得分:0)
我读了你的错误日志,发现了一些问题:
应用程序可能在其主线程上做了太多工作 - 这意味着您的代码需要很长时间才能处理。
修复此问题需要识别有可能发生长时间进程的节点。最好的方法是进行所有处理,无论与主UI thread分开的线程有多小或多大。
发送API令牌请求服务器上的身份验证失败
不要忘记在Google控制台中启用地图服务。尝试卸载并重新安装该应用程序。显然,如果您在配置上犯了一个错误,系统会缓存失败的身份验证,即使修复了配置,您的地图也无法正常工作。
尝试following the docs and guides在Android上配置Google Maps API,但每次更改配置卸载并重新安装时。确保已启用"Google Maps Android API"并确保存在以下Android密钥。
答案 1 :(得分:0)
05-23 15:43:03.853 13762-13762/vs.realitycompany I/Google Maps Android API: Google Play services client version: 8487000
05-23 15:43:03.859 13762-13762/vs.realitycompany I/Google Maps Android API: Google Play services package version: 9083438
这两行表示设备上当前的Google Play服务比您使用的旧版本更旧,因此它不会显示任何地图。 检查你的开发者控制台,看看api令牌是否在正确的位置,没有任何改变!