I'm running my app in debug mode and it's ok. But when I sign it and try to install apk, this error happens in Logcat, and phone shows "App is not installed".
This is the same on every phone with <7.0 android, so I thought the problem is in app signature, but I've tried both V1, V2, only V1 - seems like android studio doesn't even recognise that I changed something.
Tried to disable V2 completely with this, but no luck.
signingConfigs{
release {
storeFile file("keystore.jks")
storePassword 'password'
keyAlias 'alias'
keyPassword 'password'
v2SigningEnabled false
}
}
What else can I do?
C:\Program Files\Android\Android Studio\jre\jre\bin>java -version
openjdk version "1.8.0_152-release"
OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
OpenJDK 64-Bit Server VM (build 25.152-b01, mixed mode)
Today I've updated Android Studio to 3.3 and encountered the same issue.
I fixed it after delete Build folder, Clean Project, Invalidate Caches/Restart. And after that I could generate signed application via Build -> Generate Signed Bundle/APK with only V1 signature.
Build signed application with signingConfigs release still doesn't work.
You can try my solution.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With