Android Studio 4.2 Canary 3 available

Android Studio 4.2 Canary 3 available

支持 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

C++ Import/Sync

  • Issue #157901344: jniLibs and CMake IMPORTED targets - impossible to import native libraries!!!!!!

Emulator

Import/Sync

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

Resources

  • Issue #158212024: Classes generated by safeargs plugin are not seen by indexer

版权声明

禁止一切形式的转载-禁止商用-禁止衍生 申请授权

脉脉不得语
脉脉不得语
Zhengzhou Website
Android Developer | https://androiddevtools.cn and https://androidweekly.io Funder | GDG Zhengzhou Funder & Ex Organizer | http://Toast.show(∞) Podcast Host

你已经成功订阅到 Android 开发技术周报
太棒了!接下来,完成检验以获得全部访问权限 Android 开发技术周报
欢迎回来!你已经成功登录了。
Unable to sign you in. Please try again.
成功!您的帐户已完全激活,您现在可以访问所有内容。
Error! Stripe checkout failed.
Success! Your billing info is updated.
Error! Billing info update failed.
🍗