Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error:Execution failed for task ':app:compileDebugJavaWithJavac'. java.io.FileNotFoundException:

After updating and restart android studio ,I am getting below error.

Error:Execution failed for task ':app:compileDebugJavaWithJavac'. java.io.FileNotFoundException: /.../Workspace/MyAppName/app/build/intermediates/exploded-aar/com.google.android.gms/play-services/8.3.0/jars/classes.jar (No such file or directory)

I already tried to clean and rebuild my project but every time I am getting above error.

EDITS:

My gradle is as below:

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.android.support:design:23.0.1'
compile 'com.google.android.gms:play-services:8.4.0'
 }
like image 435
pRaNaY Avatar asked Feb 08 '23 22:02

pRaNaY


1 Answers

There is a bug in Instant run and it has been fixed as per tools android site.

enter image description here

Solution:

Upgrade build tools build gradle version with alpha6.

dependencies {
    classpath 'com.android.tools.build:gradle:2.0.0-alpha6'
}
like image 164
Paresh Mayani Avatar answered Feb 11 '23 01:02

Paresh Mayani