* I have rephrased the post since originally posted *
When I try to run a just-built release apk, I get an error \"the apk for your currently selected v
First, Create a keystore file if there isn't one.
Second update the app build gradle file to someting like this one to include the signing config.
android {
signingConfigs {
config {
keyAlias 'mykeyalias'
keyPassword 'android'
storeFile file('/Users/yourname/path/to/the/android/project/folder/android_project_folder_name/app/debug.keystore')
storePassword 'android'
}
}
buildTypes {
debug {
applicationIdSuffix = ".debug"
versionNameSuffix "-debug"
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.config
}
}
}
Third, build and run the app, done.