I am using Android Studio to develop this app, and today when I tried to upload it to my device to test I got a popup window saying:
Installation fail
Go to AVD Manager, then in the action section of your device select wipe data. This worked for me, hope it helps....
None of answer didn't solve my problem
you should also make progaurd
for debug too.
just add buildtypes
to your main gradle file:
buildTypes {
debug { // change release to debug
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
This worked for me:
In Android Studio this can be done by clicking on Build > Clean Project. SysadminTips
In my case was because my emulator was full of apps. I saw how much space the emulator had and was almost nothing so I deleted some apps and with this my problem was resolved
What i did was modified build.gradle (Module:app) file.
Initially it was
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
I changed it to
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
Then Rebuild and deploy !
This helped me for the emulator: Close Emulator. Tools > AVD Manager > Select Emulator Settings > Wipe Data > Cold Boot.. Now Install App.
Reference