2011-09-06 87 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鏈接我相信

相關問題