0
votes

I am new to Android Studio. But after updating my Android Studio to the latest version everything works fine, but when I decide to run the app I get this error:

(Error:Execution failed for task ':app:compileDebugJavaWithJavac'. java.io.FileNotFoundException: C:\Users\collinluvpc.gradle\caches\2.14.1\classAnalysis\cache.properties (The system cannot find the file specified))

I have tried to invalidate cache and restart but nothing seems to work. Please help.

2
my build.gradle - Godwin Ike
Please write more specific-descriptive topic regarding the problem - L A
Once clean gradle from terminal using this command gradlew .clean - ViramP

2 Answers

0
votes

At first Upgrade SDK Manager .

(Error:Execution failed for task ':app:compileDebugJavaWithJavac'. java.io.FileNotFoundException: C:\Users\collinluvpc.gradle\caches\2.14.1\classAnalysis\cache.properties (The system cannot find the file specified))

This exception is thrown during a failed attempt to open the file denoted by a specified pathname.

What is your classpath ??

You can use

compile 'com.google.android.gms:play-services:current_version' & Use this

classpath 'com.android.tools.build:gradle:current_version'

Then Clean-Rebuild Your Project .

0
votes

Go to File > Settings > Build Tools > Gradle > Configure "Gradle User Home to" -> user/.android/.gradle