1. 程式人生 > >百度度地圖總是提示key 驗證出錯! 請在 AndroidManifest.xml 檔案中檢查 key 設定解決辦法

百度度地圖總是提示key 驗證出錯! 請在 AndroidManifest.xml 檔案中檢查 key 設定解決辦法



呼叫百度度地圖總是提示key 驗證出錯! 請在 AndroidManifest.xml 檔案中檢查 key 設定
logcat提示如下
01-06 10:08:37.886: E/baidumapsdk(12351): Authentication Error errorcode: -1 uid: -1 appid -1 msg: Exception:org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: current time: Sun Jan 06 10:08:37 格林尼治標準時間+0800 1980, validation time: Wed Nov 08 08:00:00 格林尼治標準時間+0800 2006


後來發現是手機時間設定錯誤,設定成1980/1/6日了,在設定裡面改為與網路同步就解決該問題了