Android Studio 3.3 Canary 已发布。该版本带来了不少的新特性,还修复了一些重要的 bug,例如在打包 APK 时,Gradle 会消耗大量内存,从而导致出现 Java 堆栈溢出的错误。
新特性
useDexArchive
) has been removed.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 the MergeResources
task. This new method is in incubation, meaning that it may be changed or removed without notice.applicationIdTextResource
method 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 as getApplicationId()
.signingReport
task now also returns an SHA-256 hash.已修复的 bug
module-info.class
during desugaring analysis caused failures with the message java.lang.IllegalArgumentException: Type without superclass: module-info
. This file is now filtered out during desugaring analysis.--package_file
was not working.ANDROID_SDK_ROOT
environment variable when installing the Android SDK.下载地址 https://developer.android.com/studio/preview/index.html
领取专属 10元无门槛券
私享最新 技术干货