androidandroid-studiogradlebuild.gradleandroid-build-type

Build android studio signed apk with release build type


My android project is configured to have 2 build types: Debug and Release. I'm using android studio 3.1.4.

I did define the key store and other key details for my Release build type however clicking Build --> Build APK(s) in android studio will only build Debug version. I want to know are there any methods that Build APK(s) option also build the Releaseversion too?

P.S.: I know that I can use terminal and run gradlew assembleRelease to build Release version.


Solution

  • Pick Build Variants tab at the bottom-left panel and choose a release type:

    enter image description here

    P.S. Don't forget to give a credit to the @MatPag's comment.