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.
相关问题
- Could not read entry … from cache taskArtifacts.bi
- Configure gradle plugin based on future tasks
- Configure gradle plugin based on future tasks
- How to fix the error Cannot change strategy of con
- How to make available “open this project in Intell
相关文章
- In IntelliJ IDEA, how can I create a key binding t
- Android BuildConfig Field generating String incorr
- IntelliJ IDEA can't open projects or add SDK o
- IntelliJ Subversion Authentication Required Dialog
- Gradle Could not find method “() for arguments on
- Gradle Custom Plugin: gradleApi() vs Explicit Depe
- Android Studio 3.5 ERROR: Unable to resolve depend
- How to specify @category in test task in gradle?
I had the same problem. Turned out the build.gradle specified a buildToolsVersion that was not installed:
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.
I see in your comments, @SergeyB, that deleting .gradle in your user dir didn't help, but these steps resolved my issue (which had similar symptoms):
I had the same problem just after installation Android Studio version 0.6.1. The buildToolsVersion in \app\build.gradle pointed to correct version (19.0.3) however problem was fixed by changing it to version 19.1
Very late answer, and I'm sure you don't care anymore, but someone else might.
Hope this helps .
I also had the same problem. I resolved this issue by setting ANDROID_HOME environmental variable.
export ANDROID_HOME=/android_sdk_root_dir
Hope this helps.
A good tip in with these type of problems if to use the command line version of gradlew, it can give you much more useful information, for the above problem it might look like this:
Error code from Android studio
Error code from command line gradlew with the same project: