这个问题涉及我在 android-annotations
框架与 android studio
中的 gradle
集成时遇到的问题。这里https://github.com/excilys/androidannotations/wiki/Building-Project-Gradle
提示如何将其与 android 项目集成。不幸的是,我对 gradle
并不熟悉,并且 google 没有提供有关 Gradle 同步错误的有效帮助:
Error:(28, 0) Could not find property 'plugin' on root project 'value'.
表示在线
应用插件“com.android.application”
我在注释
集成期间添加的。
环境:
Android Studio (Beta) 0.8.9
------------------------------------------------------------
Gradle 1.4
------------------------------------------------------------
Gradle build time: Monday, September 9, 2013 8:44:25 PM UTC
Groovy: 1.8.6
Ant: Apache Ant(TM) version 1.9.3 compiled on April 8 2014
Ivy: non official version
JVM: 1.7.0_65 (Oracle Corporation 24.65-b04)
OS: Linux 3.13.0-37-generic amd64
感谢任何解决方案。
最佳答案
正确的语法是apply plugin: 'com.android.application'
(注意冒号)。
关于java - 我们应该考虑哪些 build.gradle 文件,为什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26389267/