Can't upload Android app to device (stale dexed jars)

后端 未结 16 559
别跟我提以往
别跟我提以往 2020-12-05 17:11

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

16条回答
  •  天涯浪人
    2020-12-05 17:37

    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 !

提交回复
热议问题