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
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
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:
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
torelease
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.