Configure Eclipse to use signed keystore

2019-01-07 04:47发布

I have finally created a 'final' keystore for my app. As my app is using Google Maps, I take I have to update all Layouts to use the new API Key resulting from the app as well..

Now I'm fully aware of the requirement to export a signed APK for release, but what after that? My thoughts are that for further development and testing, it would be easiest if I could configure Eclipse to use my final keystore instead of the debug keystore … but I found no way to do that? It only allows me to configure an 'alternative' debug key but I guess that's not the same.

Sorry if I am too confused if I have totally misunderstood something here.

7条回答
Melony?
2楼-- · 2019-01-07 05:44

We set custom keystore to use for our debug builds. Eclipse Go to Preferences -> Android -> Build and ent the file name in the "Custom debug keystore".

Important when we create our keystore for eclipse customs.:

The keystore password must be "android" It must contain a key named "androiddebugkey" That key's password must be "android" Therefore, while it is possible to sign your apps in debug with the same keystore as you Export with, it requires your production keystore to look like a debug store, which makes it less secure if someone got ahold if the file (it would be easier to inspect and guess the passwords).

if we want to change the keystore password: $ keytool -storepasswd -keystore my.keystore

if we want to change the keystore alias password: $ keytool -keypasswd -keystore my.keystore -alias my_name

if we want to change the keystore alias: $ keytool -changealias -keystore my.keystore -alias my_name -destalias my_new_name

Vkj enter image description here

查看更多
登录 后发表回答