Intellij Idea import gradle project error - “Cause: unexpected end of block data”

前端 未结 9 560
一向
一向 2020-12-19 02:02

While importing project as gradle have error Cause: unexpected end of block data. Project has several modules. I\'m using Idea 132.719 and 1.8 gradle.

9条回答
  •  [愿得一人]
    2020-12-19 02:35

    Very late answer, and I'm sure you don't care anymore, but someone else might.

    1. File -> Invalidate caches / Restart
    2. Shutdown Android Studio
    3. Rename/remove .gradle folder in the user home directory
    4. Restart Android Studio let it download all the Gradle stuff it needs
    5. Gradle build success !
    6. Rebuild project.... success !

    Hope this helps .

提交回复
热议问题