Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unsigned APK with Android Studio 1.5.1

Where does the Android Studio 1.5.1 keeps the unsigned APK? I have checked the "app\build\outputs\apk" location but there are only the signed with debug or release and unaligned. Unsigned doesn`t exist at all.

Since it is signed, it MUST exist the unsigned APK too. Where is it?

like image 935
Adrian Ivasku Avatar asked Feb 09 '16 16:02

Adrian Ivasku


2 Answers

Generating the release unsigned build .apk

you can create the unsigned apk with the gradle easily

  1. Click on the drop down menu on the toolbar at the top (usually with android icon and name of your application)

    (If it is hard to find the Edit configuration option Search it with the search box in the right top of the window)

  2. Select Edit configurations

  3. Click plus sign at top left corner or press alt+insert

  4. Select Gradle

  5. Choose your module as Gradle project

  6. In Tasks: enter assemble

  7. Press OK

  8. Press play

After that you should find your unsigned 'apk' in directory ProjectName\app\build\outputs\apk

like image 81
Omal Perera Avatar answered Jan 04 '23 17:01

Omal Perera


The Android Gradle plugin won't expose an unsigned version of your APK if you have a signingConfig assigned to your buildType. The moment you take out your signingConfig and rebuild (or build a debug version), you'll see something like this:

$ ./gradlew clean assembleRelease
$ find . -name \*.apk
./app/build/outputs/apk/app-<flavor>-release-unsigned.apk
like image 35
Doug Stevenson Avatar answered Jan 04 '23 17:01

Doug Stevenson