Generating unsigned, release apk with Android Studio
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.
In the release
build type, don't specify a signingConfig
at all, and your build won't be signed. Release builds don't pick up the default signing config that debug builds get, so it should work for those.
There's a discussion on the adt-dev mailing list about it.
Bear in mind that to build from Android Studio, you'll need to go to the Gradle tasks window and choose the assembleRelease
task; normal builds via "Make Project" don't actually build the final APK.