I just updated Android Studio to 2.3. An error is shown that one of the cache files in the Gradle folder cannot be accessed, hence the Gradle sync failed. I tried restarting Android Studio and re-downloading the Gradle files but it doesn't help. Here is a picture of the error:
Asked
Active
Viewed 500 times
0
-
Removed `.gradle` folder in your app and gradle sync again. – Rod_Algonquin Mar 28 '17 at 16:31
-
Possible duplicate of [after updating to android studio 2.3 build gradle not able to build](http://stackoverflow.com/questions/42603047/after-updating-to-android-studio-2-3-build-gradle-not-able-to-build) – Camilo Ortegón Mar 28 '17 at 16:37
-
Clear project than Build – Cătălin Florescu Mar 28 '17 at 19:20
1 Answers
0
You need to update your build tools to 25.0.0. Edit your build.gradle file in the main module:
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
...
}
If that doesn't work, I recommend you to go back to Android Studio 2.2.3: http://tools.android.com/download/studio/builds/android-studio-2-2-3

Camilo Ortegón
- 3,414
- 3
- 26
- 34