2011-09-06 149 views

回答

2

有关创建apk文件。

Right click on your project->Export 

Select the Android->Export Android Application 

then next 

In this wizard by default you get your project name which you have selected then next 

in this keystore you have to create your keystore as first time then select Create new keystore and set the path like this way or you can browse it by click on browse button 
path e.g. D:\app\myapp\my_release.keystore 

set the password here with confirm password then next. 

Set the Alias name here 
Set the password and confirm password (this is different from the previous one but) 
Set the year and other details 
then click next 
here set the path for your apk file 
for e.g. D:\app\myapp\my_app.apk 

现在你的apk文件已经创建,但你已经为这个新创建的移动设备密钥库设置了map api key。

使用该密钥库像这样

c:\java\...\bin Keytool –list -alias youraliasname –keystore D:\app\myapp\my_release.keystore -storepass yourpassword -keypass youraliaspassword then enter 

现在获得地图密钥注册并获得来自谷歌的网站与此证书指纹地图键,在XML文件中更改API密钥(请注意,此API密钥会您只能在为模拟器生成的移动设备上工作,而且还必须保存为备份)。

现在再次按照上述步骤重新生成apk文件。但这次你必须选择现有的密钥存储区

+0

@pratik ...感谢您的帮助......但是你也可以帮助我如何上传应用程序到市场......我已经经历过网站,它说我必须在developer.Google.com上创建一个帐户并支付25美元......之后,下一步是什么? – android

1

发布:右键单击项目,转到android工具,选择类似“导出签名包”的选项。对于密钥,注册一个。它真的归结于此。但是完整的手册/帮助在线,并且很容易找到。

我不知道你就完蛋了,但只是阅读这些主题:

Signing Your Applications
版本控制您的应用程序
准备出版
发布在Android Market

(我已经挂了第一个,其余的在第一个链接的左侧)。

对于谷歌地图API,您将获得远远不够用this链接我相信

相关问题