Search code examples
androidandroid-emulatorsignedandroid-proguard

Android app doesn't work after published it by generate signed app


I create an app and it work on emulator. It works on debug apk on device, but when I build it with generate signed app it doesn't work? what is wrong and how I can debug it on device on signed sate?


Solution

  • In my project doesn't run signed app. I changed minifyEnabled value from true to false then problem is solve . this bad solution. I'm looking for a better way.

    build.gradle :

    buildTypes {
            release {
                shrinkResources true
                minifyEnabled false //true
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
            debug {
                debuggable true
            }
        }