After updating android studio to 3.0 and switching to gradle plugin 3.0.0
I am getting this error:
Gradle \'...\' project refresh failed
Err
It's solved in MAC
gradle
brew uninstall gradle
brew install gradle
cd ~/[users].gradle/
rm -r *
I have also been experiencing this error with gradle 4.0.0 and 4.0.1. Unfortunately deleting the Users/<user>/.gradle
folder didn't do the trick. I had to uninstall and re-install android studio along with deleting the Users/<user>/.gradle
folder again
Pls. see this official tutorial on gradle migration to 3.0.
Had similar issue - the reason was that in manifest was written meta_data
instead of meta-data
. For older gradle it was just warning, for new - fatal error.
Maybe you have something similar.
For me worked to delete everything in:
C:\Users\userName\.gradle
I had the same problem after my studio upgraded from 2.3.3 to 3.0, of course I have upgraded my project gradle plugin version from 2.3.3 to 3.0.
I think the gradle plugin jar file is broken and not readable or any unknow exception happened, so delete it and re-download.
What I propose is to,
If the problem is not solved, try to delete your gradle user data (mine is C:\Users\tea\.gradle) and then re-sync project.