how to deploy a signed APK from Android Studio

2.4k views Asked by At

I have built and signed my APK from Android Studio. Now I want to run the signed APK in Android Studio. How can I do this?

thanks -Sonam

3

There are 3 answers

2
CodyEngel On BEST ANSWER

This isn't really a typical use case and as such it's not really supported in the way you want. Here are 4 possible alternatives:

Changing your Build Variant to release is one way you can still deploy the app from Android Studio while being able to verify the signed version will work as expected.

If you are trying to install the app onto an emulator, you can simply drag and drop the signed APK from your folder into the emulator window and it will install the app for you.

For a physical device you can drag and drop the APK to your devices downloads folder, from the device you now view your downloads and tap the APK and select install.

You can also just drag and drop the APK into Google Drive or Dropbox and download it from your phone and run it that way.

0
Muntaser Ahmed On

Add the following to your build.gradle:

signingConfigs{
    key{
        keyAlias 'your key alias'
        keyPassword 'your keypassword'
        storeFile file('path/to/yourfile.keystore')
        storePassword 'your storepassword'
    }
}
buildTypes {
    debug{
        signingConfig signingConfigs.key
    }

These already answered questions may help you:

How can deploy signed APK when click Run in Android Studio?

Android Studio - Run signed apk on emulator

2
Daniel Nugent On

The answer is that you don't use Android Studio.

Use the adb install command from the CLI:

adb install myApp.apk

For overinstall, use the -r parameter.

Here is what it should look like:

enter image description here