Android Studio 3.3 Canary 已发布。该版本带来了不少的新特性,还修复了一些重要的 bug,例如在打包 APK 时,Gradle 会消耗大量内存,从而导致出现 Java 堆栈溢出的错误。
新特性
- The flag for disabling incremental dexing (
useDexArchive) has been removed. - Android Studio 3.2 gave warnings when it found differences in versions between runtime and compile classpaths. Android Studio 3.3 reports these differences as errors.
- Android Studio 3.3 Canary 1 includes Kotlin 1.2.50. The ability to update the Kotlin plugin in Android Studio is temporarily disabled; this is to prevent the installation of incompatible plugins while we resolve some issues.
- The new
getRawAndroidResources()method in the Gradle build API returns a file collection containing all resources for the variant. This method has been added primarily as a step toward migrating the Kotlin Android Extensions plugin to this API so that it will no longer need to use theMergeResourcestask. This new method is in incubation, meaning that it may be changed or removed without notice. - The new
applicationIdTextResourcemethod in the Gradle build API returns the application ID of a variant. For feature variants, this returns the resolved application ID from the application; for application variants, this method behaves the same asgetApplicationId(). - The Gradle
signingReporttask now also returns an SHA-256 hash. - The SDK Manager now reports the size of files downloaded during the update process.
已修复的 bug
- Gradle was consuming large amounts of memory, leading to Java heap space errors, when packaging APKs.
- Some JAR files could not be opened for the reading of their class files for dexing. This has been fixed by switching to a new ZIP file decoder.
- Processing
module-info.classduring desugaring analysis caused failures with the messagejava.lang.IllegalArgumentException: Type without superclass: module-info. This file is now filtered out during desugaring analysis. - The Force HTTP setting in the Android Studio SDK updater was not working.
- The SDK Manager command-line argument
--package_filewas not working. - Android Studio did not use the
ANDROID_SDK_ROOTenvironment variable when installing the Android SDK. - The Android test plugin ignored the Gradle command-line parameters to select which tests to run.
下载地址 https://developer.android.com/studio/preview/index.html
继续阅读与本文标签相同的文章
下一篇 :
vuejs实现折叠面板展开收缩动画效果
-
8 分钟了解 Kubernetes
2026-05-18栏目: 教程
-
Helm 从入门到实践 | 从 0 开始制作一个 Helm Charts
2026-05-18栏目: 教程
-
阿里云突发性能实例t5 和共享型实例xn4 n4的区别
2026-05-18栏目: 教程
-
【DockerCon2017技术解读】Docker特性介绍
2026-05-18栏目: 教程
-
面向海量数据的极致成本优化-云HBase的一体化冷热分离
2026-05-18栏目: 教程
