Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Application will not run on device: DELETE_FAILED_INTERNAL_ERROR?

Problem:

I made some changes to my gradle file and whenever I try to run my application I keep getting the error DELETE_FAILED_INTERNAL_ERROR after being told that the application path must be uninstalled then re-installed to run the app. I approve the uninstall and then the DELETE_FAILED_INTERNAL_ERROR is thrown and execution just outright stops.

Here is my gradle file:

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'
}

Here is the 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

I have installed all the sdk and build components needed as required by gradle. I also have uninstalled all apps with my package name from the device and the app still will not run.

Question:

What is DELETE_FAILED_INTERNAL_ERROR and why will the app not run?

like image 821
Benjamin Smith Avatar asked May 03 '15 04:05

Benjamin Smith


2 Answers

Try cleaning the project in Android Studio and then building it again. To clean the project click on Build > Clean Project.

I had the same issue and found this solution here.

like image 168
jacoviza Avatar answered Nov 06 '22 04:11

jacoviza


Open your project folder from command prompt and type: gradlew clean it will initiate downloading once done restart your android studio and run your program.

like image 2
Mohammed Siddiq Avatar answered Nov 06 '22 04:11

Mohammed Siddiq