我读过的所有Gradle教程都解释了build.gradle
文件应该包含以下内容:
apply plugin: 'android'
或
apply plugin: 'android-library'
然而,我刚刚用Android Studio 0.8.6构建了一个新项目,我的build.gradle
现在有:
apply plugin: 'com.android.application'
- 这是纯粹的语法改变还是有更深层次的目的?创建android库的新语法是什么?
- 纯语法更改(我认为避免冲突/使用'protected'命名空间)
- com.android.library
2014 gradle峰会上的这个演讲让我们对它有了更多的了解:https://www.youtube.com/watch?v=A9Fn3ehhU-o from ~ min 15