gradle - Android App Installation Failed With Error: [INSTALL_FAILED_DEXOPT] -


to preface question, have looked @ similar questions can find on stackoverflow , around web no success. have been developing using real device months no issue. yesterday updated android studio, had been working with, version 0.5.4. update required upgrade gradle version 0.9 apparently build system has major changes. since upgrading ide, when try run project on device, following output in run console:

run console output

waiting device. target device: samsung-sch_i605-42f7bff119a3bf69 uploading file     local path: c:\users\student\android studioprojects\drunkmodeandroid\drunkmode\build\apk\drunkmode-debug-unaligned.apk     remote path: /data/local/tmp/com.launchfuture.drunk_mode installing com.launchfuture.drunk_mode device shell command: pm install -r "/data/local/tmp/com.launchfuture.drunk_mode" pkg: /data/local/tmp/com.launchfuture.drunk_mode    // line red failure [install_failed_dexopt]                     // line red 

logcat output

04-06 14:44:00.066    8040-8040/? d/finsky﹕ [1] workertask.onpreexecute: verification requested id = 21, data=file:///data/local/tmp/com.launchfuture.drunk_mode flags=114 fromverificationactivity=false  04-06 14:44:01.586  12740-12740/? w/dalvikvm﹕ dexoptz: zip archive '/data/app/com.launchfuture.drunk_mode-1.apk' not include classes.dex  04-06 14:44:01.591    2001-2001/? w/installd﹕ dexinv: --- end '/data/app/com.launchfuture.drunk_mode-1.apk' --- status=0xff00, process failed  04-06 14:44:01.591    2001-2001/? e/installd﹕ dexopt failed on '/data/dalvik-cache/data@app@com.launchfuture.drunk_mode-1.apk@classes.dex' res = 65280  04-06 14:44:01.591    2410-2621/? w/packagemanager﹕ package couldn't installed in /data/app/com.launchfuture.drunk_mode-1.apk 

build.gradle

buildscript {     repositories {         mavencentral()     }     dependencies {         classpath 'com.android.tools.build:gradle:0.9.+'     } } apply plugin: 'android'  repositories {     mavencentral() }  dependencies {     compile 'com.google.code.gson:gson:2.2.+'     compile files('libs/parse-1.4.0.jar')     compile files('libs/googleanalyticsservicesandroid_3.01/libgoogleanalyticsservices.jar')     compile 'com.google.android.gms:play-services:4.1.32' }  android {     compilesdkversion 19     buildtoolsversion '19.0.0'      defaultconfig {         minsdkversion 13         targetsdkversion 19     } } 

my android device rooted , therefore able through file system @ specified locations. of note, reference data@app@com.launchfuture.drunk_mode-1.apk@classes.dex not present in /data/dalvik-cache/ directory. of have experience handling issue?

would please empty contents of /data/dalvik-cache , reboot (or wipe dalvik cache recovery) gets rebuilt ?


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -