[go: nahoru, domu]

Release updates archive


Android Studio 4.2 Beta 4 is now available in the Beta channel.

If you have Android Studio set up to receive updates on the Beta channel, you can get the update by choosing Help > Check for Updates (Android Studio > Check for Updates on macOS). Otherwise, you can download it here.

For information on new features and changes in all preview builds of Android Studio 4.2, see the Android Studio Preview release notes. For details of bugs fixed in each preview release, see previous entries on this blog.

We greatly appreciate your bug reports, which help us to make Android Studio better. If you encounter a problem, let us know by reporting a bug. Note that you can also vote for an existing issue to indicate that you are also affected by it.

New Gradle property: android.native.buildOutput

To reduce clutter in build output, AGP 4.2 filters messages from native builds that use CMake and ndk-build, displaying only C/C++ compiler output by default. Previously, a line of output was generated for every file that was built, resulting in a large quantity of informational messages.

For usage information, see the release notes.

General Fixes


Android App Bundles
  • Issue #171462060: [AGP 4.1.0] ./gradlew app:installDebugAndroidTest incorrectly tries to fetch APK from App Bundle
Android Gradle Plugin
  • Issue #174839536: ConnectedAndroidTest still run even there is no test files with Gradle Plugin 7.0.0-alpha02
  • Issue #176998942: Exception while trying to import/sync project in AS 4.2 b3 with Gradle source dependency. 4.1.1 passes.
  • Issue #169266007: issues related with android.defaultConfig.ndk.debugSymbolLevel
  • Issue #175718909: After upgrad NDK to 22, AGP-externalNativeBuild error
IntelliJ Lint
  • Issue #170656529: [AGP 4.1] lint module being evaluated in improper context
  • Issue #175741231: Bug: choosing Lint quick-fix for conversion to WEBP, its dialog gets stuck, hard to even close it
Upgrade Assistant
  • Issue #174793640: Arctic Fox Canary 2: Android Gradle Plugin Upgrade Assistant is upgrading kotlin gradle plugin to the wrong value


Android Studio Arctic Fox Canary 5 (2020.3.1.5) is now available in the Canary and Dev channels.

If you have Android Studio set to receive updates on the Canary or Dev channel, you can get the update by choosing Help > Check for Updates (Android Studio > Check for Updates on macOS). Otherwise, you can download it here.
For information on new features and changes in all preview builds of Android Studio Arctic Fox, see the Android Studio Preview release notes. For details of bugs fixed in each preview release, see previous entries on this blog.

We greatly appreciate your bug reports, which help us to make Android Studio better. If you encounter a problem, let us know by reporting a bug. Note that you can also vote for an existing issue to indicate that you are also affected by it.

C++ editor: Set execution point in debugger

In the C++ code editor window, you can set an arbitrary execution point when running your app in the debugger. This feature is useful when you want to break out of a loop or force a different path with branching code.

To learn more, see the release notes.

General Fixes

This update includes fixes for the following issues:

Android App Bundles
  • Issue #171462060: [AGP 4.1.0] ./gradlew app:installDebugAndroidTest incorrectly tries to fetch APK from App Bundle
Android Gradle Plugin
  • Issue #175337498: AGP 4.1, Gradle 6.7: mergeDebugNativeLibs is not up to date and slows down Gradle builds.
  • Issue #177167009: AGP 7.0.0-alpha04 - Jar missing if there are no custom manifest permissions
  • Issue #37797956: Switch to new models (v2).
  • Issue #160138798: DexFileDependenciesTask should be cacheable
  • Issue #174839536: ConnectedAndroidTest still run even there is no test files with Gradle Plugin 7.0.0-alpha02
  • Issue #176998942: Exception while trying to import/sync project in AS 4.2 b3 with Gradle source dependency. 4.1.1 passes.
  • Issue #174493018: Reduce the number of //tools/base/build-system/integration-test/application bazel test targets
  • Issue #175718909: After upgrad NDK to 22, AGP-externalNativeBuild error
  • Issue #154948828: Configuration resolved early, with included build and configuration on demand
  • Issue #169885381: Make `kotlinCompilerVersion` optional (or remove it altogether)
  • Issue #177004260: Split IdeLibrary into Ide*Library and Ide*Dependency
  • Issue #154984238: Skip MergeNativeLibsTask when there are no native libraries
  • Issue #159238028: apkDirectory is final after upgrading to AGP v4.0
Android Studio
  • Issue #155258590: Compose function calls are not highlighted in the color from the color scheme
C++ Build
  • Issue #173049056: Native build tasks should suppress success messages
  • Issue #163379002: Gradle externalNativeBuild script has problem in recognizing last include statement in Android.mk file
Databinding Gradle Layout Editor
  • Issue #161154345: AttachedToolWindow$UpdatableActionButton buttons aren't visible on side panels in Design mode
Lint
  • Issue #170656529: [AGP 4.1] lint module being evaluated in improper context
  • Issue #175741231: Bug: choosing Lint quick-fix for conversion to WEBP, its dialog gets stuck, hard to even close it
  • Issue #158777858: Lint error: package fragment is not found for module:<lintWithKotlin> is a module[ModuleDescriptorImpl@6dc0aaa0] file:KtFile: Crm.kt
  • Issue #159733104: Lint: NPE in KtLightClassForFacade.getLightClassData
  • Issue #177044619: AGP 4.2 lint.xml ignore regexp does not work as expected
Logcat Profilers
  • Issue #174841028: Opening dmtrace.trace from Device File Explorer always fail (stuck on loading)
Test Upgrade Assistant
  • Issue #175496966: "Configuration with name 'testApi' not found." on AGP 7.0.0-alpha03
  • Issue #174787527: Opening a project with gradle 7.0.0-alpha01 plugin will no upgrade to 7.0.0-alpha02 automatically.
  • Issue #174793640: Arctic Fox Canary 2: Android Gradle Plugin Upgrade Assistant is upgrading kotlin gradle plugin to the wrong value
  • Issue #160258052: AS4.2C3 may not upgrade gradle classpath to 'com.android.tools.build:gradle:4.2.0-alpha03' from 'alpha02'.
  • Issue #153680188: com.android.tools.build:gradle:4.1.0-alpha04' does not upgrade to 'alpha05' gracefully when upgrading AS4.1C4 to AS4.1C5
  • Issue #155109633: com.android.tools.build:gradle:4.1.0-alpha07' does not upgrade to 'alpha08' gracefully when upgrading AS4.1C7 to AS4.1C8
View Binding

Android Studio 4.1.2 is now available in the Stable channel.

If you already have an Android Studio build on the Stable channel, you can get the update by clicking Help > Check for Update (Android Studio > Check for Updates on macOS). Otherwise, you can download here.

For information on new features and changes in all releases of Android Studio, see the Android Studio release notes.

We greatly appreciate your bug reports, which help us to make Android Studio better. If you encounter a problem, let us know by reporting a bug. Note that you can also vote for an existing issue to indicate that you are also affected by it.

General fixes

This update also includes fixes for the following public issues:

Shrinker (R8)
  • Issue #174167294: App failed to run when upgraded to AGP 4.1
  • Issue #172999904: R8 Slowdown and Timeout Due to number of proguard rules
  • Issue #170716961: com.android.tools.r8.CompilationFailedException: Compilation failed to complete
  • Issue #171982443: Default method called using invoke-static instead of invoke-interface with AGP 4.1 (r8 2.1.62)
  • Issue #173184123: Public tracking bug for b/172895918 - R8 crashing with java.lang.NullPointerException
Run
  • Issue #173493930: Pressing the run button doesn't actually install the APK on the device, but Android studio reports operation succeeded
  • Issue #173137937: Studio builds old files
  • Issue #173209141: Application not killed after install
  • Issue #173126306: Everytime, when you click "Run", the changes in the code are not applied. I have to run two times to apply changes
Android Gradle Plugin
  • Issue #173134919: Sync fails for unit tests in libraries when Android resources disabled
Running Tests Emulator
  • Issue #170657960: Embedded emulator on Windows never closes the emulator process


Android Studio Arctic Fox Canary 4 (2020.3.1.4) is now available in the Canary and Dev channels.

If you have Android Studio set to receive updates on the Canary or Dev channel, you can get the update by choosing Help > Check for Updates (Android Studio > Check for Updates on macOS). Otherwise, you can download it here.
For information on new features and changes in all preview builds of Android Studio Arctic Fox, see the Android Studio Preview release notes. For details of bugs fixed in each preview release, see previous entries on this blog.

We greatly appreciate your bug reports, which help us to make Android Studio better. If you encounter a problem, let us know by reporting a bug. Note that you can also vote for an existing issue to indicate that you are also affected by it.

StateFlow support in data binding

For Kotlin apps that use coroutines, you can now use StateFlow objects as a data binding source to automatically notify the UI about changes in the data. Your data bindings will be lifecycle aware and will only be triggered when the UI is visible on the screen.

To use a StateFlow object with your binding class, you need to specify a lifecycle owner to define the scope of the StateFlow object, and in your layout, assign the properties and methods of your ViewModel component to the corresponding views using binding expressions, as shown in the following snippets:


class ViewModel() {
   val username: StateFlow
}

<TextView
    android:id="@+id/name"
    android:text="@{viewmodel.username}" />


If you're in a Kotlin app that uses AndroidX, StateFlow support is automatically included in the functionality of data binding, including the coroutines dependencies.

To learn more, see the user guide.

General Fixes

This update includes fixes for the following issues:

Android Gradle Plugin
  • Issue #174605126: generateReleaseLintModel fails when lintOptions.checkDependencies = true in AGP 7.0.0-alpha01.
  • Issue #173911569: gradle 4.1.0 no longer embedding wear apk in mobile apk.
Android Studio
  • Issue #174785779: RepositoryLoader.loadFromResFolder: Control-flow exceptions (like ProcessCanceledException) should never be logged
C++ Debugger
  • Issue #174594763: Android Studio doesn't display strings when using -fsigned-char
Code Editor Lint
  • Issue #175001233: ThreadDetector: better handling of annotations on functional interface methods
Upgrade Assistant


Android Studio 4.2 Beta 3 is now available in the Beta channel.

If you have Android Studio set up to receive updates on the Beta channel, you can get the update by choosing Help > Check for Updates (Android Studio > Check for Updates on macOS). Otherwise, you can download it here.

For information on new features and changes in all preview builds of Android Studio 4.2, see the Android Studio Preview release notes. For details of bugs fixed in each preview release, see previous entries on this blog.

We greatly appreciate your bug reports, which help us to make Android Studio better. If you encounter a problem, let us know by reporting a bug. Note that you can also vote for an existing issue to indicate that you are also affected by it.

General Fixes


Android Studio
  • Android Studio needs to update the leanback template
Database Inspector
  • If the schema tree only contains Databases with no schema, nothing is rendered
  • AdbCommandRejectedException thrown when device is unplugged while entering offline mode
Core IDE
  • [Android Studio Preview Crash Report][4.1.0.10] java.lang.IllegalStateException at com.android.tools.idea.emulator.EmulatorToolWindowManager.getToolWindow-81716942
Resources
  • UI freeze in ResourceRepositoryManager.computeLibraryResourceMap
Layout Editor
  • Exception report: java.lang.AssertionError at com.android.tools.idea.common.scene.SceneInteraction.commit-0e67c1d5
Embedded Emulator
  • Mouse events contain wrong coordinates for devices with landscape default orientation
New Project Wizard
  • New "Import Gradle or Eclipse project" not displaying main imported module
Project System
  • Remember Passwords functionality is not working while Generating Signed Apk
  • Gradle version quickfixes for older versions results in an incorrect state.
  • 20 second freeze from org.jetbrains.android.exportSignedPackage.ExportSignedPackageWizard.<init>
Testing
  • Test duration is showing incorrect when we choose Instrumentation test result from Test History
Android Studio
  • Issue #174785779: RepositoryLoader.loadFromResFolder: Control-flow exceptions (like ProcessCanceledException) should never be logged
Android Gradle Plugin