I have the weird issue that my debug version works fine, but after signing and generating an app bundle, which I uploaded to the Play Store, the app immediately crashes (I ran the LogCat on a phone that had the Store-version of my app and I saw it had something to do with AndroidX ConstraintLayout, but no way of reproduce that). I reckon there is some difference between the release
and debug
version, so I set out to debug my release version.
When I do though, Android Studio cannot install the APK with the following error:
Installation failed with message INSTALL_PARSE_FAILED_NO_CERTIFICATES: Package /data/app/vmdl1900556551.tmp/base.apk has no certificates at entry AndroidManifest.xml. It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.
WARNING: Uninstalling will remove the application data!
Do you want to uninstall the existing application?
I have the signing config in my app.gradle
, which uses the same data as my signed and published app:
android {
signingConfigs {
defaultConfig {
keyAlias 'solaredge-notifier'
keyPassword '******'
storeFile file('/path/to/KeyStore.jks')
storePassword '*****'
}
}
compileSdkVersion 28
defaultConfig {
applicationId "nl.friesoft.solaredgenotifier"
minSdkVersion 23
targetSdkVersion 27
versionCode 2
versionName "1.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
debuggable true
signingConfig signingConfigs.defaultConfig
}
}
}
I am a little lost here now (and, quite frankly, a little pissed because I have published a crashing app on the Play Store).
If you would like to check the live app, it is here: https://play.google.com/store/apps/details?id=nl.friesoft.solaredgenotifier&hl=en