Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 452
Serhii Bohutskyi Avatar asked Oct 24 '13 19:10

Serhii Bohutskyi


People also ask

Where is the location of gradle?

goto Files>Settings in Android Studio. goto Build,Execution,Development>Gradle. choose your gradle path.


1 Answers

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.

like image 84
Guno Heitman Avatar answered Oct 07 '22 22:10

Guno Heitman