最近几天一直在弄百度地图,先开始生成了一个key ,也没啥问题,突然昨天 ,图层就不显示了,整个就一空白网格 ,愁死我了。
一开始想到可能是KEY 的问题,马上又被自己否定了,包名,啥的都没变动,应该不太会是这种问题,但是为了保险起见,我还是又重新生成了一次,key。
运行,还是同样的问题。
因为一直没有看到错误log,心情很是郁闷。
可能昨天下午,耗时太长,脑子有点蒙了。这个问题暂且就先放下 ,今天,人清醒一下再来解决。
12-24 10:13:16.996 25624-25624/com.example.xlhu.maphxldemo E/CheckPermission﹕ InterfaceDescriptor is android.content.IContentProvider , code = 21
12-24 10:13:16.996 25624-25624/com.example.xlhu.maphxldemo E/CheckPermission﹕ InterfaceDescriptor is android.content.IContentProvider , code = 21
12-24 10:13:17.106 25624-25624/com.example.xlhu.maphxldemo D/OpenGLRenderer﹕ Enabling debug mode 0
12-24 10:13:17.376 25624-25624/com.example.xlhu.maphxldemo V/KeyEvent﹕ Reset: android.view.KeyEvent$DispatcherState@41c47738
12-24 10:13:17.386 25624-25624/com.example.xlhu.maphxldemo E/baidumapsdk﹕ Authentication Error errorcode: 230 uid: -1 appid -1 msg: APP Scode码校验失败
12-24 10:13:17.386 25624-25624/com.example.xlhu.maphxldemo E/baidumapsdk﹕ Authentication Error errorcode: 230 uid: -1 appid -1 msg: APP Scode码校验失败
12-24 10:13:17.426 25624-25624/com.example.xlhu.maphxldemo D/MainActivity﹕ action: permission check error
12-24 10:13:17.436 25624-25624/com.example.xlhu.maphxldemo I/Timeline﹕ Timeline: Activity_idle id: android.os.BinderProxy@41aaf8b0 time:161595119
12-24 10:13:17.846 25624-25727/com.example.xlhu.maphxldemo E/CheckPermission﹕ InterfaceDescriptor is android.content.IContentProvider , code = 21
12-24 10:13:17.846 25624-25727/com.example.xlhu.maphxldemo E/CheckPermission﹕ InterfaceDescriptor is android.content.IContentProvider , code = 21
12-24 10:13:18.226 25624-25624/com.example.xlhu.maphxldemo E/baidumapsdk﹕ Authentication Error errorcode: 230 uid: -1 appid -1 msg: APP Scode码校验失败
今天一早来,看到了这一段错误信息,可以肯定是key的问题,(尼玛昨天怎么没看到,麻蛋,之前用eclipse就经常会出现日志输出问题,有的时候 关掉应用重启就好了,有的时候要关机重启。。。 )。流程没错。就那么简单几个步骤。
难道我生成的KEY 不支持debug版本,然后我吧 demo 打包,运行,ok
顿时不是喜悦,而是万头草泥马崩腾。
最后弄清楚,debug 版本 和 relese
C:\Documents and Settings\Administrator\.android目录下
找到debug.keystore 文件 复制到你的项目目录中
在 android studio 控制台中输入
keytool -v -list -keystore debug.keystore
就可以SHA1信息
重新生成key 在你的配置文件中 替换原来的 ,可以了
没看都得,下面这个链接写的蛮详细的
http://bbs.lbsyun.baidu.com/forum.php?mod=viewthread&tid=85103&extra=page%3D1