Error running android: Gradle project sync failed. Please fix your project and try again

前端 未结 30 3146
南方客
南方客 2020-11-30 18:32

Android Studio (1.2 RC0) keeps telling me Error running android: Gradle project sync failed. Please fix your project and try again. How can I find out what th

30条回答
  •  -上瘾入骨i
    2020-11-30 18:56

    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.

提交回复
热议问题