Generating Google map Release API Key

后端 未结 6 2125
囚心锁ツ
囚心锁ツ 2020-11-28 07:55

My app uses Google Maps, I signed up for a Google Maps key to debug, it worked. But now, I need a Google Maps key in release mode, before publishing. How can I get it?

6条回答
  •  失恋的感觉
    2020-11-28 08:09

    i hope u know that The Android build process signs your application differently depending on which build mode you use to build your application. There are two build modes: debug mode and release mode. You use debug mode when you are developing and testing your application.

    The debug signing process happens automatically when you run or debug your application using Eclipse with the ADT plugin

    • For Release mode-

    if you are using Eclipse with the ADT plugin, you can use the Export Wizard to export a signed APK (and even create a new keystore, if necessary). The Export Wizard performs all the interaction with the Keytool and Jarsigner for you, which allows you to sign the package using a GUI instead of performing the manual procedures to compile, sign, and align, as discussed above. Once the wizard has compiled and signed your package, it will also perfom package alignment with zipalign. Because the Export Wizard uses both Keytool and Jarsigner, you should ensure that they are accessible on your computer, as described above in the Basic Setup for Signing.

    • To create a signed and aligned APK in Eclipse:

    • Select the project in the Package Explorer and select File > Export. Open the Android folder, select Export Android Application, and click Next.

    • The Export Android Application wizard now starts, which will guide you through the process of signing your application, including
      steps for selecting the private key with which to sign the APK (or
      creating a new keystore and private key).

    • Complete the Export Wizard and your application will be compiled, signed, aligned, and ready for distribution.

提交回复
热议问题