版本兼容性
1.0版本及其后的Android Studio和Gradle插件需要保持兼容性,这是至关重要的要求。
虽然我们仍在制定最终的政策,但您至少应该期望:
Studio 1.x与Gradle插件1.y相兼容。
Newer versions of the Gradle plugin may require newer versions of Studio to enable the new features in the IDE, but the project should open in older versions of Studio, and build from there (since Gradle does the build). We will be very careful about this.
We will determine later our compatibility story between Studio 2.x and Gradle Plugin 1.x and between Studio 1.x and Gradle Plugin 2.x
We will make every effort to keep compatibility where possible, and to provide good Quick Assist to help with migration where applicable.
Gradle插件1.0.0 - 1.1.3适用于Gradle 2.2.1 - 2.3。
It does not work with Gradle 2.4+
Gradle插件1.2+适用于Gradle [2.2.1,3.0[版本。保留HTML,不做解释。
Newer versions of the Plugin may require a newer version of Gradle to benefit from advanced features.
However the current 1.2+ should work with [2.2.1, 3.0[
(We cannot guaranteed compatibility with 3.x as it may introduce breaking changes: Gradle 1.x -> 2.0 introduced Groovy breaking changes)
Android Studio Android Gradle Plugin Gradle
1.0.0+ 1.0.0 - 1.1.3 2.2.1 - 2.3
1.0.0+ 1.2+ 2.2.1+
1.0版本之前的DSL发生了很多变化,但现在应该是稳定的。
如果/当我们需要进行更改时,我们将有很长的弃用期,可能长达6个月甚至12个月。预览兼容性
此表指示了与1.0版本之前组件的兼容性。
所有这些破坏性更改都是因为我们对IDE和Gradle之间交换的模型进行了大量微调。所有这些工作都是为了确保在1.0版本之后的稳定性。
有关更多信息,请转到http://tools.android.com/tech-docs/new-build-system/version-compatibility