1. 程式人生 > >百度地圖key驗證 出現Authentication Error errorcode: -1 解決辦法

百度地圖key驗證 出現Authentication Error errorcode: -1 解決辦法

Authentication Error errorcode: -1 uid: -1 appid -1 msg: Exception:com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: current time: Sun Oct 20 10:52:55 格林尼治標準時間+0800 2013, validation time: Wed Oct 08 08:00:00 格林尼治標準時間+0800 2014

在百度下載的demo裡面提示是key驗證的問題,於是重新弄申請了好幾次key都不行,結果在網上看到好像是時間的問題,才恍然大悟,自習看了log裡面的提示,原來是自己的手機時間不對,這個手機是拿朋友不用的寫程式玩的,手機時間就沒有設定正確,才出現這個問題的,引以為戒,先仔細看log然後對症下藥。

感謝http://bbs.lbsyun.baidu.com/viewthread.php?tid=13729;