How can I create a keystore?

后端 未结 11 1350
北恋
北恋 2020-11-22 13:47

What are the steps to create a keystore for android?

I need to use google maps in my app and I don\'t know what steps I missed. Please provide me with the specific d

11条回答
  •  孤独总比滥情好
    2020-11-22 14:27

    First thing to know is wether you are in Debug or Release mode. From the developer site "There are two build modes: debug mode and release mode. You use debug mode when you are developing and testing your application. You use release mode when you want to build a release version of your application that you can distribute directly to users or publish on an application marketplace such as Google Play."

    If you are in debug mode you do the following ...
    A. Open terminal and type:

    keytool -exportcert -alias androiddebugkey -keystore path_to_debug_or_production_keystore -list -v
    

    Note: For Eclipse, the debug keystore is typically located at ~/.android/debug.keystore...

    B. when prompted for a password simply enter "android" ...

    C. If you are in Release mode follow the instructions on...

    http://developer.android.com/tools/publishing/app-signing.html <-- this link pretty much explains everything you need to know.

提交回复
热议问题