Android 安装 Installation did not succeed. The application could not be installed: INSTALL_FAILED_SHAR

1、gradle.properties文件中添加

android.injected.testOnly=false

2、build.gradle中修改

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

3、同步一下,就可以了

你可能感兴趣的:(AS,setting,APP,android,studio,gradle,android)