支持 v3 and v4 签名
Android Gradle Plugin 4.2 现在支持 v3 和 v4 APK 签名格式。要在构建中启用这两种格式中的一种或两种,请在模块级 build.gradle 或 build.gradle.kts 文件中添加以下属性:
// build.gradle
android {
...
signingConfigs {
config {
...
enableV3Signing true
enableV4Signing true
}
}
}
// build.gradle.kts
android {
...
signingConfigs {
config {
...
enableV3Signing(true)
enableV4Signing(true)
}
}
}
V3和 v4签署提供以下好处:
- Apk v3 签名启用了密钥轮换,最小化了丢失密钥的影响。
- v4 签名允许你在 Android 11 中使用 ADB 增量安装 APK 快速部署大型 APK。这个新标志负责部署过程中的 APK 签名步骤。
一般性 Bug 修复
Android Gradle Plugin
- Issue #158545411: Non-shrunk desugared library should only be packaged in the app APK
- Issue #143862922: Warn when flatDir repository is used in the build
- Issue #37069473: add hint text for TransformException DuplicateFileException 1.5 plugin
- Issue #140747218: Improve error messages for exceptions thrown from Jetifier
Build Analyzer
- Issue #157673275: ProcessDataBinding is not working incrementally
C++ Import/Sync
- Issue #157901344: jniLibs and CMake IMPORTED targets - impossible to import native libraries!!!!!!
Emulator
- Issue #156865227: Zooming in on the emulator causes visual flicker
Import/Sync
- Issue #156112443: Invalid Gradle JDK configuration found
Lint
- Issue #140699627: Lint fail when using StringRes as field of an enum used as SafeArgs argument
- Issue #159169803: RequiredSize check triggers on AndroidManifest.xml files in directories named "layout"
New Project Wizard
- Issue #130594965: New AdMob Activity crashes when running on device
Resources
- Issue #158212024: Classes generated by safeargs plugin are not seen by indexer
版权声明
禁止一切形式的转载-禁止商用-禁止衍生 申请授权