应用程序不会在设备上运行:DELETE_FAILED_INTERNAL_ERROR?

Ben*_*ith 17 dependencies android gradle android-studio

问题:

我对gradle文件进行了一些更改,每当我尝试运行我的应用程序时,我都会DELETE_FAILED_INTERNAL_ERROR在被告知必须卸载应用程序路径然后重新安装以运行应用程序后才会收到错误.我批准卸载然后DELETE_FAILED_INTERNAL_ERROR抛出并执行完全停止.

这是我的gradle文件:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 21
    buildToolsVersion "21.1.2"

    defaultConfig {
        applicationId "benyamephrem.tilt"
        minSdkVersion 14
        targetSdkVersion 21
        versionCode 19
        versionName "3"
    }
    buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:21.0.3'
    compile 'com.google.android.gms:play-services:7.0.0'
    compile 'com.nineoldandroids:library:2.4.0'
    compile 'com.daimajia.easing:library:1.0.0@aar'
    compile 'com.daimajia.androidanimations:library:1.0.8@aar'
}
Run Code Online (Sandbox Code Playgroud)

这是ADB Logcat:

Installing benyamephrem.tilt
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/benyamephrem.tilt"
pkg: /data/local/tmp/benyamephrem.tilt
Failure [INSTALL_FAILED_DEXOPT]


DEVICE SHELL COMMAND: pm uninstall benyamephrem.tilt
DELETE_FAILED_INTERNAL_ERROR
Run Code Online (Sandbox Code Playgroud)

我已经安装了gradle所需的所有sdk和构建组件.我还从设备中卸载了包含我的包名称的所有应用程序,但应用程序仍然无法运行.

问题:

DELETE_FAILED_INTERNAL_ERROR该应用程序无法运行的原因是什么?

jac*_*iza 16

尝试在Android Studio中清理项目,然后再次构建它.要清理项目,请单击 Build > Clean Project.

我有同样的问题,在这里找到了这个解决方案.