正如在 Android Studio 3.0 (canary 3.0) 中看到的,我们现在depedencies
通过声明implementation
而不是compile
配置来添加。
// Before
compile 'com.android.support:appcompat-v7:25.3.1'
// Currently
implementation 'com.android.support:appcompat-v7:25.3.1'
我们仍然可以使用compile
,但我想了解:
implementation
和compile
配置有什么区别?- 为什么 Android Gradle 构建更改
implementation
为默认使用?