Generating unsigned, release apk with Android Studio

后端 未结 3 1048
予麋鹿
予麋鹿 2020-12-25 14:01

I need to generate an unsigned, release APK (where someone else will then sign it and release it to the store- with the someone else handling the keys and e

3条回答
  •  醉梦人生
    2020-12-25 14:30

    Actually you can build an unsigned .APK just by building it:

    To generate it, on the left side of the Android Studio, there is a Build Variants menu (maybe written vertically). Click it.

    The Build Variants window tab has appeared, click debug and change it by release.

    Rebuild your project application > Build > Rebuild Project.

    Then click Run, a new window has appeared, click Run > Continue anyway > Choose the device you want to run with > OK.

    The application won't work on your device but the release build version, of your .apk, will be generated into the same directory as your debug ones:

    • C:\ANDROID_PROJECT_DIRECTORY\app\build\outputs\apk\

    You can note that the name is app-release-unsigned.apk and it was exactly what we wanted to have.

    More information on this tutorial website.

提交回复
热议问题