How to create release key for android v2 maps

感情迁移 提交于 2019-12-07 22:51:43

问题


I tried below code for a debug key and its working fine. When i make a apk then map is crashing. After searching in google i found debug key is work in release mode.

keytool -list -v -keystore "C:\Users\your_user_name\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android

So,how can i create a release key for v2 maps. please help me.


回答1:


I didn't had the chance of doing that, but for my understanding what should be done is:

1. First of all you will need to export you project as a Signed Application:

Right click your project -> Android Tools -> Export Signed Application Package...

This will take you through wizard where you would have to create a new release.keystore with a password or use an existing one you created before.

2. From this point on the process should be identical to the one where you use the debug.keystore.

3. All the steps of creating a debug api key and registering it in Google API Console are described at this blog post I wrote:

Google Maps API V2 Key

4. Just remember that using the debug.keystore will not give you desired result.




回答2:


Tyr this.. your directory where you have installed java and go to the bin folder.

For example-

C:\Program Files\Java\jdk_your_version\bin>keytool -list -v -keystore C:\Users\your_user_name\.a
ndroid\debug.keystore -storepass android -keypass android



回答3:


i think it might help you.

C:\Program Files\Java\jdk_your_version\bin>keytool.exe -list -v -alias androiddebugkey -keystore C:\Users\your_user_name\.android\(Application).keystore -storepass YOUR_STORE_PASSWORD -keypass KEY_PASSWORD

Generally YOUR_STORE_PASSWORD and KEY_PASSWORD are same is "android".



来源:https://stackoverflow.com/questions/16371711/how-to-create-release-key-for-android-v2-maps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!