🆕 Android Studio 4.1 RC 2 available

🆕 Android Studio 4.1 RC 2 available

常规问题修复

本次更新修复问题如下:

Android Gradle Plugin

Deployment

Dexer (D8)

  • Issue #160905482: Desugaring broken for subclasses of ConcurrentHashMap
  • Issue #160909126: coreLibraryDesugaringEnabled seems to break ConcurrentHashMap when using Gson and reflection

Import/Sync

Lint

  • Issue #158128960: AGP 4.0 false positive Instantiatable Lint check if Application extends java class

Run

Shrinker (R8)

  • Issue #161403944: With AGP 4.1.0.beta01+, minifyEnabled = true leads to runtime crash due to java.lang.VerifyError
  • Issue #161154276: [2.1.52] Undefined value encountered during compilation. This is typically caused by invalid dex input that uses a register that is not defined on all control-flow paths leading to the use
  • Issue #160942326: Runtime errors when using R8 2.0+
  • Issue #160901582: CompilationError during R8 phase when optimizations enabled
  • Issue #161230424: App crashes after Upgrading to AS 4
  • Issue #162921738: Conditional keep rule not triggered by other keep rule
  • Issue #159194018: Problem with ClassInitializationAnalysis for kotlin coroutines android library
  • Issue #162568140: NullPointer during IR Conversion in R8
  • Issue #161735546: gradle:4.1.0-beta04 Null pointer exception when generating signed build
  • Issue #152476580: Gradle 4.0.0 and above libcore.reflect.AnnotationAccess.toAnnotationInstance exception

此外,下面的问题在本版本中已经解决,但不一定完全解决了:

Import/Sync

  • Issue #160909456: androidx compose project gradle sync breaks when upgrading to AS 4.2 Canary 4

Memory

  • Issue #161925082: The Instance View window is too small and cannot be made wider

Motion Editor

New Project Wizard

Shrinker (R8)

  • Issue #161727616: [R8 2.1.52] java.lang.NoSuchFieldError: No field Companion of type ...

版权声明

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

脉脉不得语
脉脉不得语
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.
🍗