`
lovelease
  • 浏览: 385932 次
社区版块
存档分类
最新评论

Google Map无法显示:Error contacting Google servers. XXX authentication issue

阅读更多
在开发google map时遇到的问题:
06-26 14:05:58.934: E/Google Maps Android API(24276): Failed to load map. Error contacting Google servers. This is probably an authentication issue (but could be due to network errors). 

关键一句就是上面的,总是连不上,已经用了代理,所以确定是authentication issue,网上找了很多资料,逐个试了遍,总算有一个方法成功了:
大体意思是说:不能用Eclipse直接“Run as”安装app到设备上,因为在打包成apk时会对你的apk进行签名,在访问google map服务时google play service(或者是google play store)会进行验证,有人指出,需要以下方法安装app:Eclipse File→Export→Export Android Application,之后就一路跟着走,选择[C:\Users\yourname\.android\debug.keystore](期间用到的默认密码都是“android”),最后会生成apk文件,将其copy进sd卡然后安装;

于是了解了一下debug.keystore这东西的作用,其实这东西可以绑定一个且只能是一个google账户,还记得要申请google API key吧,当时是用过这个东西中的sha1数字签名的,它与google账户绑定就可以为你自己生成一个client ID,然后[这串签名+你的app包名]就可以生成API key(一个API key可以对多个app生效的,只要你在API Console里面设定过)。

可为什么非要这么做呢,这样岂不是没法dubug了,通过Eclipse安装时必定也会进行签名,为什么这个签名不对?于是“Window→Preferences”,找到Android,下面有个Build,发现了default debug keystore,其值是“C:\android-sdk-windows\.android\debug.keystore”,这与上面用的不一样,于是在Customer debug keystore里面添加C:\Users\yourname\.android\debug.keystore,再通过Eclipse安装app,问题解决了。

关于debug.keystore和release.keystore,还是自行上网看看资料的好
分享到:
评论

相关推荐

    An internal error occurred during: java.lang.NullPointerException

    在使用MyEclipse进行Java开发的过程中,可能会遇到一个常见的问题:“An internal error occurred during: 'Calculating completion proposals...'”。这个错误通常伴随着`java.lang.NullPointerException`异常,...

    解决docker报错dial tcp lookup registry-1.docker.io

    解决docker报错dial tcp lookup registry-1.docker.io

    TMS Pack for FireMonkey2.3.0.1

    Fixed : Issue with dblclick focusing issue in TTMSFMXGrid Improved : comment popup in cell configurable in TTMSFMXGridCell v1.8.0.6 Improved : PDF Export engine v1.8.0.7 Package build options ...

    zxing-3.2.0

    ## Contacting Post to the [discussion forum](https://groups.google.com/group/zxing) or tag a question with [`zxing` on StackOverflow](http://stackoverflow.com/questions/tagged/zxing). ## Etcetera [!...

    Duplicate Email Remover 2.7

    rules when contacting the technical support service: - If your query is related to erratic software operation, please provide the following information: - Version number of the software product ...

    storm配置文档.pdf

    - 各个ZooKeeper节点之间应能相互通信,否则会出现`Error contacting service`的提示。 综上所述,文档中包含了Storm集群和ZooKeeper配置的详细步骤和注意事项。通过正确配置这些组件,可以构建一个高可用、稳定的...

    Python程序设计(第二版).chm

    Contacting O'Reilly Acknowledgments Chapter 1. Introducing Python Section 1.1. "And Now for Something Completely Different" Section 1.2. The Life of Python Section 1.3. The Compulsory ...

    patrol parameters manual1.6.pdf

    - **注意事项**:在联系BMC Software之前,请先阅读“Before Contacting BMC Software”部分以加快解决问题的速度。 ### 结论 PATROL Parameters Manual 1.6提供了关于PATROL软件参数设置的详细指导,对于充分利用...

    T Get Public IP

    It works contacting with any server on Internet that tells your public IP, and doing parsing with the reply data to get the address. By default it asks to: ...

    Raize3.0.10.rar

    Contacting Raize Software, Inc. COMPLETING THE RAIZE COMPONENTS 3.0 INSTALLATION ================================================ Once the installation program is complete you may begin using the ...

    关于英文邮件一些tips.doc

    - **寻求更多信息**:"I want to talk to you over the phone regarding issues about report development and the XXX project." 请求电话讨论具体问题。 掌握这些英文邮件写作技巧,可以让你的邮件更具专业性和...

    VCS Tech Talk

    - **Issue Resolution**: Detailed steps for resolving common and complex issues. - **Best Practices**: Recommendations for best practices in configuring and managing VCS clusters. - **Case Studies**...

    dpm_1_1_2_eth_DP_

    The function does not contain sophisticated error handling. Before starting to use the dpm function you should have read the corresponding publication [2] and understand the examples provided on our ...

    wp-o-matic.1.0RC4.zip

    = I get an error 'Maximum execution time of 30 seconds exceeded' when fetching = WP-o-Matic attempts to override the maximum execution time setting by its own. In some setups, however, this is not ...

    无边框窗口代码详解

    本文档主要介绍了一种创建无边框窗口的技术,通过特定的JavaScript代码实现了一个全屏显示的窗口,并且能够自定义窗口的尺寸。此外,该技术还涉及到了如何利用HTML框架(frames)来控制窗口的行为,比如移动或关闭...

    Carplay认证指导2019

    28 Contacting Apple .......................................................................................... 29 USB Signal Integrity Test Labs .........................................................

    全国自考《英语写作基础》模拟试卷(1).docx

    Having decided to rent a flat, we ______ contacting housing agencies in the city.** - **知识点:** 动词短语的意义与用法 - **解析:** 此处考查短语 *set about* 的用法,意为“着手做某事”。 **8. It ...

    英文写Email常用礼貌用语.doc

    - 感谢对方联系:`Thank you for contacting us.` 这句话适用于回应客户的咨询,表达对他们对公司兴趣的感激。 - 回复迅速的感谢:`Thank you for your prompt reply.` 表达对方快速响应的赞赏,即使回复不及时,...

    Mpeg2_Decoder

    Contacting the MPEG Software Simulation Group 4. Availability 5. Installation 6. Acknowledgements 7. History of the technical report <br> 1. Overview =========== <br>This ...

    英语邮件写作方法总结

    - “I want to talk to you over the phone regarding issues about report development and the XXX project.” — 我想跟你电话讨论下报告进展和XXX项目的情况。 3. **咨询信息/反馈/建议**: - “Should you ...

Global site tag (gtag.js) - Google Analytics