新的 JVM 资源编译器
一个新的 JVM 资源编译器现在可以在 Android Gradle plugin 4.2 中使用。这个工具可以替换 AAPT2 资源编译器的一部分功能,并且可以潜在地提高构建性能,特别是在 Windows 机器上。
如果想要尝试使用 JVM 资源编译器,请在项目的 gradle.properties
文件中启用它:
android.enableJvmResourceCompiler=true
New removable
setting for dynamic feature modules
Android Gradle plugin 4.2 使用了 bundletool
1.0.0,它为使用动态功能模块的应用程序引入了一个行为改变: 任何指定为 dist:install-time
的动态功能模块,如果没有明确标记为 dist:removable
,默认情况下将不可移动。这个新设置优化了安装时模块与基本模块的融合,有可能提高某些应用程序的性能。
有关此新设置的详细信息,请参阅动态功能模块清单文档中 dist:removable
文档。
常规问题修复
Android Gradle Plugin
- Issue #160155450: BuildConfig not correctly honoring contract around quotations in String
- Issue #157590496: Make the order of entries in APKs deterministic for clean debug builds, unless building from AS
Layout Inspector
- Issue #155920880: Layout Inspector preview is jumping all over the place
Lint 棉绒
- Issue #155088391: Can no longer specify layout_height and layout_width in a style
- Issue #161370707: Lint assertion check flags simple instanceof checks
Build Variants
- Issue #160851593: Build Variants for dynamic feature modules don't switch when app's build variant is switched
Testing 测试
- Issue #144891963: Running an individual instrumented test doesn't work : 运行单个仪表化测试不起作用
Upgrade Assistant
- Issue #139769779: Dialog for recommendation about "Android Gradle Plugin Update" shows up in the wrong Android Studio Window
另外,下面的问题在这个版本中被解决,但不一定被解决:
Build Variants
- Issue #160851593: Build Variants for dynamic feature modules don't switch when app's build variant is switched
Testing
- Issue #144891963: Running an individual instrumented test doesn't work
Upgrade Assistant
- Issue #139769779: Dialog for recommendation about "Android Gradle Plugin Update" shows up in the wrong Android Studio Window
版权声明
禁止一切形式的转载-禁止商用-禁止衍生 申请授权