user1842744
user1842744

Reputation: 218

How to create release key for android v2 maps

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.

Upvotes: 2

Views: 5540

Answers (3)

Emil Adz
Emil Adz

Reputation: 41099

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:

enter image description here

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.

Upvotes: 3

Ajay
Ajay

Reputation: 1189

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".

Upvotes: 1

TheFlash
TheFlash

Reputation: 6027

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

Upvotes: 2

Related Questions