Execution Failed For App:clean In Android Studio 2.2
I currently switch to android studio 2.2 and I have a big problem. when I build project to deploy on emulator I got this error: Error:Execution failed for task ':app:clean'. > U
Solution 1:
Disable Instant Run. It is in File -> Settings -> Build,Execution -> Instant Run
This worked for me.
Solution 2:
For me there was a stuck debug test inside of Android Studio and mockable-jar
was used inside of that JVM and couldn't be deleted.
What I had to do is.. stop the frozen JVM from Task Manager, then clean.
What I'll do the next time this happens is.. stop the frozen debug test from Android Studio, then clean.
Solution 3:
i finally fix it! after:
apply plugin: 'com.android.application'
add this line of code to build.gradle(Module: app) file:
task clean(type: Delete) {
delete rootProject.buildDir
}
it will delete all jar and lib files from build your directory. hope to enjoy :)
Post a Comment for "Execution Failed For App:clean In Android Studio 2.2"