After clicking on the Android Studio link to Update Gradle I get this error: Error running android: Gradle project sync failed. Please fix your project and try again.

After clicking on the Android Studio link to update Gradle, I get this Ubuntu Linux message:

The file '/home/anne/Downloads/builder-3.2.0-alpha04.jar' is not marked as executable. If this was downloaded or copied from an untrusted source, it may be dangerous to run. For more details, read about the executable bit.

Then I had an error running attempting to run my Android app in Android Studio:

"Gradle project sync failed. Please fix your project and try again."

A search on Google found this page:

https://stackoverflow.com/questions/29808199/error-running-android-gradle-project-sync-failed-please-fix-your-project-and-t

suggesting this:

  1. Goto File -> Invalidate caches / Restart
  2. Shutdown Android Studio
  3. Rename/remove .gradle folder in the user home directory
  4. Restart Android Studio (It will download gradle metadata and data)
  5. Gradle build succeed
  6. Rebuild project. Done.

I just performed #1 and it worked, but read the full page of suggestions as there are a few to solve this problem including this one:

Resolution is simple. Open the "Android SDK Manager", update all packages and then restart your Android Studio. After that you project should compile without any issues.

Leave a Reply