不能运行版本的密钥库Android应用 [英] Can't run android application with release keystore
问题描述
我开发了一个简单的应用程序了,并产生了谷歌地图API密钥。
I developed a Simple Applicaiton , and generated a Google API Map key.
我从调试密钥库中创建一个签名提供的API控制台。
I provided the api console with a signature created from the debug keystore.
当我准备好发布,我创建了一个releasekeystore,并与它签署的申请书。
When I got ready for release , I created a releasekeystore , and signed the application with it .
然后我用了releasekeystore生成新的指纹,并更新了谷歌API控制台。
Then I used the releasekeystore to generate a new fingerprint , and updated the google api console.
然而,当我在本地运行我的应用程序,它提供了一个错误说
However when i run my application locally , it gives an error saying
10-10 14:37:42.571: E/Google Maps Android API(12369): Ensure that the following correspond to
what is in the API Console: Package Name: com.evento.simplemap, API Key: key, Certificate Fingerprint: 16C737A318E97CFF92EE4C1A1A72A785CBaa0C03
这是指纹从debug.keystore得到指纹。
This fingerprint is the fingerprint obtained from the debug.keystore.
如何强制releasekeystore工作(其指纹我已经在控制台上载)。
How should I force the releasekeystore to work (whose fingerprint I have uploaded in the console).
我很抱歉这一切对我来说太复杂了,因为我曾与谷歌地图API没有previous经验。请给我一些见解。
I am sorry all of this is too complicated for me , as I had no previous experience with google map api . Please give me some insight
推荐答案
首先创建您的指纹正确,使用您的apk签署密钥库不debug.keystore。
First of all create your fingerprint proper, using your signed apk keystore not debug.keystore.
然后生成的地图API密钥,也必须需要给你的应用程序的软件包名称,下面的例子:
Then generate map api key, there you must need to give your application's package name, example below:
您SHA1指纹;您的应用程序包名称(com.test),点击生成新的Android密钥。
Your SHA1 fingerprint; Your App Package Name(com.test) and click on generate new android key.
请确保您已激活谷歌地图API V2活跃。
Be sure that you have activated Google map api v2 active .
这将生成一个密钥,复制键,并把它放在你的项目的Android清单文件与reaplace调试的关键。然后运行它会工作。
It will generate a key, copy that key and put it in your project's Android manifest file in reaplace with your debug key. Then run it will work.
这篇关于不能运行版本的密钥库Android应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!