IntelliJ IDEA中未解决的依赖项错误

时间:2013-12-21 02:39:08

标签: android intellij-idea android-studio

所以我刚开始使用IntelliJ并创建了我的第一个项目,但我在Messages make

中收到此错误

enter image description here

并在Event log

enter image description here

这是我的build.gradle文件的内容

enter image description here

有人可以帮忙吗?

1 个答案:

答案 0 :(得分:0)

在Gradle构建文件中尝试此操作:

dependencies {
  compile 'com.android.support:appcompat-v7:18.0.+'
}

您的一个依赖项(格式为 groupId:artifactId:version )并不完全正确。您的版本仅列为+。相反,它必须是18.0.+,它指定版本18.0.0或更高版本。

有关详细信息,请参阅here