Create Android app release mode

后端 未结 3 1875
星月不相逢
星月不相逢 2020-12-16 12:34

I want to create my Android app in release mode. I did the suggested Export from Eclipse. Android tools -> Export Unassigned ( then signed it aligned it etc ) I though the

3条回答
  •  无人及你
    2020-12-16 13:22

    If you want to SIGNED IN and ZIP ALIGNED your app in release mode so that it could distribute and can be uplodated to the Google play store, then just follow the below steps.

     --> Right click on project
     --> Android Tools
     --> Export Unassigned app and save in directory like D:\Sdcard.apk
    
             //Now open your windows terminal, CMD
     --> change directory to the bin of the jave like
     --> cd c:\ProgramFiles\JAVA\JDK\bin
    

    Now this is time to create Keystore Released File... now write these commands in the TERMINAL,

    keytool -genkey -v -keystore my-release-key.keystore -keyalg RSA -keysize 2048 -validity 14600

    This will propmt for Keystore "password" and for Key "password", so type different password and answer to the question it will ask later. Now my-release-key.keystore file will be generated in directory where your "bin" folder of java are, like in my sytstem it will be like

         c:\ProgramFiles\JAVA\JDK\bin\ my-release-key.keystore
    

    write this command in Terminal for Signed in the app

    jarsigner -verbose -keystore my-release-key.keystore D:\Sdcard.apk mykey

    Now redirect your terminal to the Zipalign.exe file which is located in Android sdk 21\tool\ , like in my system i did that

    cd F:\Softwares\LANGUAGES SOFTEARE\Android Setup\android-sdk-21 version\tools

    After that put the below line in the terminal

    zipalign -v 4 D:\Sdcard.apk newSdcard.apk

    Congratulations! - Now you will find a newSdcard.apk file inside the Android sdk\tool, Now upload it to play store, and remember me with love.

提交回复
热议问题