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

前端 未结 9 572
一向
一向 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:33

    I had the same problem. Turned out the build.gradle specified a buildToolsVersion that was not installed:

    android {
        buildToolsVersion "18.1"
        ...
    }
    

    while I only had 18.1.1 installed. Changing the buildToolsVersion in build.gradle fixed the problem for me. If this doesn't fix it for you, carefully inspecting the Intellij log might reveal the problem.

    You can use the Android SDK Manager to see which version of the build tools is installed.

提交回复
热议问题