[go: up one dir, main page]

Release updates archive


Android Studio 3.6 Beta 2 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.

General fixes

This update also includes fixes for the following public issues:

Android Studio
  • Issue #142467886: Too many attributes in a single causes the app to crash when access R.styleable
Data Binding
  • Issue #142286949: Bindings are being created for non-data binding layouts
  • Issue #142288059: MergedManifestManager.getSnapshot(facet).getPackage() returns null unexpectedly
  • Issue #140999936: AGP 3.6-alpha11: error: cannot generate view binders java.lang.StackOverflowError
  • Issue #142130560: Arch components github sample does not compile with AGP 3.6.alpha11
  • Issue #141633235: data binding crashes if you have Foo extends LiveData
Gradle
  • Issue #141536986: Missing native libs after update an external dependency with native libs java.lang.UnsatisfiedLinkError find "libmylib-jni.so"
  • Issue #141869049: aaptOptions.noCompress should be case-insensitive for android resources
Lint Profilers Shrinker (R8) View Binding
For information on new features and changes in all preview builds of Android Studio 3.6, 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.

Android Emulator Hypervisor Driver for AMD Processors is now available for download via SDK Manager in the Canary channel.

This is meant for AMD users on Windows who want a faster AVD experience on par with HAXM, or cannot run with Hyper-V / WHPX enabled (e.g., running other virtual machine engines such as VMware/VirtualBox or not running Windows 10; however, note that we are still committed to WHPX / Hyper-V for the use cases where that is optimal, such as interop with Docker on Windows).

Follow the instructions below to enable it for faster AVD experience on the AMD platform.

  • Make sure your AMD CPU supports virtualization and BIOS has NOT disabled it. As BIOS options are different among vendors, please refer to your system manufacturer's manual.
  • For Windows 10: All Windows features enabling Hyper-V (either explicitly or silently) must be turned off. See the screenshots below for a few examples.
  • Launch SDK Manager via Android Studio and you should see "Android Emulator Hypervisor Driver for AMD Processors". Check and click "Apply". The SDK Manager will download the installer package and unpack it to $ANDROID_SDK_ROOT\extras\google\Android_Emulator_Hypervisor_Driver.
Then:
  • Open a Windows command console with administrator privileges.
  • Go to $ANDROID_SDK_ROOT\extras\google\Android_Emulator_Hypervisor_Driver.
  • Run silent_install.bat. Make sure you see the desired output from the installer: STATE: 4 RUNNING

If something goes wrong, please file an issue in Issuetracker. Make sure to submit your CPU model, OS version info, and the installer output.

Note: In a future version of Studio, this will all be automatic based on your current CPU configuration.

Note: This is based on porting KVM for Windows. We will open source the driver.

Emulator 29.2.6 is now available in the Canary and Dev channels. HAXM 7.5.4 is now available in all channels. Changes:
  • Fixed crash when starting fresh API 26/27 system images.
  • Added a command line option to start a screen recording for the current session:
    • Format: -record-session <filename>,<delay-until-start>,<duration>
    • Example: -record-session tmp.webm,5,10
  • 32-bit ARM headless build (qemu-system-armel-headless) is now included with the distribution.
Changes in HAXM 7.5.4:
  • Fixed issues with inconsistent interruptibility state and improperly continuing to run the guest if snapshots were loaded while the emulator is running. More details

We are happy to announce the release of ConstraintLayout 2.0 beta 3. 

It’s available from the google maven repository:
dependencies {
    implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta3'
}




or if using the android.support packages:

dependencies {
    implementation 'com.android.support.constraint:constraint-layout:2.0.0-beta3'
}


Documentation is available on https://developer.android.com/reference/androidx/constraintlayout/widget/ConstraintLayout

Examples are available on https://github.com/googlesamples/android-ConstraintLayoutExamples


MotionLayout

This release is adding support for the MotionEditor in Android Studio.

Bugfixes


Several issues where also fixed in beta 3:



ConstraintLayout version: 2.0.0-beta2 xml maxWidth attribute137635197
ConstraintLayout:2.0.0-alpha4 MotionLayout - The views are not animated if the interpolator is AnticipateInterpolator131280484
ConstraintHelper#getViews() return empty list135968241
TextView width bug with CL 2.0 beta2135547191
View not centered correctly with margin142755253
Flow helper chain not respecting horizontal bias and style while RTL is enabled137791337
"Invalid ID" error when constraining views with dynamic IDs133782949
ConstraintSet inflation references "mId" attribute131579783
MotionLayout crash when there is no layoutDescription or applyMotionScene=false136103102
[ConstraintLayout 2.0.0-beta1] NPE when calling MotionLayout.transitionToState132473209
Constraint layout using non-explicit attr definitions in 2.0.0-alpha4136103084
ConstraintSet does not copy some attributes from XML138327339


Android Studio 4.0 Canary 1 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.

Support for Jetpack Compose

Jetpack Compose toolkit provides a modern approach to building your app's UI. The toolkit also brings all of Kotlin's benefits, such as helping you to write concise and idiomatic code that's fully interoperable with Java.
For the best experience developing with Jetpack compose, you should use the latest version of Android Studio 4.0. That’s because when you use Android Studio to develop your app with Jetpack Compose, you can benefit from smart editor features, such as New Project templates and the ability to immediately preview your Compose UI.
To learn more and get started, go to the Jetpack Compose overview.

Java 8 Library desugaring in D8 and R8

Android Studio now includes support for using a number of Java 8 language APIs without requiring a minimum API level for your app.
Through a process called desugaring, the DEX compiler, D8, in Android Studio 3.0 and higher already provided substantial support for Java 8 language features (such as lambda expressions, default interface methods, try with resources, and more). In Android Studio 4.0, the desugaring engine has been extended to be able to desugar Java language APIs. This means that you can now include standard language APIs that were available only in recent Android releases (such as java.util.streams) in apps that support older versions of Android.
For more information, see the Android Studio 4.0 Preview release notes.

Smart editor features when editing R8/ProGuard rules

Android Studio now provides smart editor features when you open ProGuard rules files, such as syntax highlighting, code completion, and error checking. The editor also integrates with your Android Studio project to provide full symbol completion for all classes, methods, and fields, and includes quick navigation and refactoring.

Support for Kotlin DSL script files

The Android Gradle plugin now supports Kotlin DSL build script files (*.kts). When used with Android Studio, certain IDE features, such as the Project Structure dialog and build script quick fixes, now also support reading and writing to Kotlin build script files.

Motion Editor

Android Studio now includes a visual design editor for the MotionLayout layout type, making it easier to create and preview animations.
The Motion Editor provides a simple interface for manipulating elements from the MotionLayout library that serves as the foundation for animation in Android apps. In previous releases, creating and altering these elements required manually editing constraints in XML resource files. Now, the Motion Editor can generate this XML for you, with support for start and end states, keyframes, transitions, and timelines.
For basic usage instructions, see the Android Studio 4.0 Preview release notes.

Fragment wizard and new fragment templates

A new Fragment wizard and fragment templates are now available by navigating to File > New > Fragment > Gallery or by clicking Create new destination in the Navigation editor.

Feature-on-feature dependencies

In previous versions of the Android Gradle plugin, all Dynamic Feature modules had a dependency on the app’s base module. When using Android Gradle plugin 4.0.0, you can now include a feature module that depends on another feature module. That is, a :video feature can depend on the :camera feature, which depends on the base module.
See usage instructions in the release notes.

'feature' and 'instantapp' Android Gradle plugins removed

Android Gradle plugin 3.6.0 deprecated the Feature plugin (com.android.feature) and the Instant App plugin (com.android.instantapp) in favor of using the Dynamic Feature plugin (com.android.dynamic-feature) to build and package your instant apps using Android App Bundles.
See the release notes for more information.

Kotlin Android live templates

Android Studio now includes Android live templates for your Kotlin classes. For example, you can now type toast and press the Tab key to quickly insert a Toast. For a full list of available live templates, click File > Settings from the menu bar (or Android Studio > Preferences on macOS) and navigate to Editor > Live Templates.

Known issue for Missing Kotlin Maven repo

If you upgrade an existing project to use Android Studio 4.0, you might see the following error message:
Application build has failed with an error (Could not find org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.60-eap-25)
To resolve this issue, include the following in your project's top-level build.gradle file:
buildscript {
    repositories {
        ...
        maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
    }
}

allprojects {
    repositories {
        ...
        maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
    }
}

General fixes

This update includes fixes for the following public issues:
Android Studio
  • Issue #142467886: Too many attributes in a single causes the app to crash when access R.styleable
App Model
  • Issue #142320330: Dependencies.pb in App Bundle should not be a length-delimited proto
Data Binding
  • Issue #142288059: MergedManifestManager.getSnapshot(facet).getPackage() returns null unexpectedly
  • Issue #142286949: Bindings are being created for non-data binding layouts
  • Issue #140999936: AGP 3.6-alpha11: error: cannot generate view binders java.lang.StackOverflowError
  • Issue #118943890: DataBinding Turkish language problem
  • Issue #142130560: Arch components github sample does not compile with AGP 3.6.alpha11
  • Issue #141633235: data binding crashes if you have Foo extends LiveData
Gradle
  • Issue #141869049: aaptOptions.noCompress should be case-insensitive for android resources
  • Issue #141536986: Missing native libs after update an external dependency with native libs java.lang.UnsatisfiedLinkError find "libmylib-jni.so"
  • Issue #135135421: (suggestion) Task.outputs.cacheIf should specify a reason
Gradle Sync
Kotlin
Lint
Profilers
Project System
Strings Editor
  • Issue #135209257: Android Studio hangs when loading project when translation editor left open
View Binding
For information on new features and changes in all preview builds of Android Studio 4.0, 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.

Emulator 29.2.5 is now available in the Canary and Dev channels. Changes:
  • Fixed potential emulator freezes related to gralloc buffer destruction.
  • Improved performance of glMapBufferRange and glUnmapBuffer (requires new system image).
  • Fixed potential issues with ADB APK installer / file pusher UI code not running on the UI thread.
  • Wear AVDs now default to using the AC charger.
  • For API < 16, we now force host side rendering (either with host GPU or Swiftshader). This should resolve issues with black screens on these images.
  • Fixed issue when emulator would get stuck closing if a gRPC endpoint was created.
  • Whenever the emulator has a fatal abort message, we now print in the console in addition to generating the crash report dialog. This should make such events more visible.
AMD users on Windows: Since 29.2.4, we've made a preview of a hypervisor that does not require using Hyper-V and has performance on par with HAXM. Sideload link
  • Be on an AMD CPU.
  • Ensure that WHPX/Hyper-V are disabled. This requires a system restart.
  • Running the silent install script will install the hypervisor driver.
  • The emulator should be able to run after that, assuming it is 29.2.3 or later.
  • Running the silent install script with -u will uninstall the driver.
  • In a future Studio canary, we will make this hypervisor driver available in the SDK manager.
Since last week, we've also made the following changes to the Container Scripts (background):
  • Authentication is now required to use the remote streaming emulator. This is an extra step, but it makes it easier to stream the emulator in more environments.
  • Cleaned up and updated documentation.
  • Known issue: Note that while the streaming client can be built and used on macOS, the containers themselves are not intended for running on macOS as nested CPU virtualization is required, which is not currently supported in macOS Docker.

Emulator 29.2.4 is now available in the Canary and Dev channels. Changes:
  • Windows: Fixed issue where "VCPU shutdown request" would occur if loading snapshots while the emulator is running.
  • Fixed freezes related to the battery page.
  • Speculative fix landed for a potential hang that has to do with ADB. If you notice the emulator taking a long time to respond, see if 29.2.4 fixes the issue, and if not, try force killing the ADB process.
  • Vulkan: ASTC LDR compressed textures are now supported via emulation if not supported on the host GPU (feature: textureCompressionASTC_LDR).
  • Input
    • Linux: Fixed Alt key not working on non-QWERTY layouts.
    • Fixed issue where virtual scene camera WASDQE controls did not work with non-QWERTY layouts.
  • Google Maps UI
    • Fixed font size on popup dialog.
    • Fixed issue when starting routes from the Points page.
Preview: Hypervisor for running the emulator on AMD CPUs on Windows

Currently, Windows Hypervisor Platform (WHPX) is required to run the emulator on AMD CPUs on Windows. However, there are compatibility and performance issues; some machines cannot work with WHPX and the experience is slower than with Intel CPUs and HAXM.

To address this, since emulator 29.2.3, we've added a new hypervisor backend + driver, based on KVM, that allows you to run the emulator on Windows with AMD CPUs with compatibility and performance that should be on par with Intel HAXM.

We're still working out bugs with it, so we'll only make this initially available as a sideload from this link. Instructions:
  1. Be on an AMD CPU.
  2. Ensure that WHPX/Hyper-V are disabled, through Windows Optional Features. Credential Guard may also need to be disabled. This requires a system restart.
  3. Unzipping gvm_install.zip and running the silent install script will install the hypervisor driver.
  4. The emulator should be able to run after that, assuming it is 29.2.3 or later.
  5. Running the silent install script with -u will uninstall the driver.


Android Studio 3.6 Beta 1 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.

Resumable SDK downloads

When downloading SDK components and tools using the SDK Manager, Android Studio now allows you to resume downloads that were interrupted (for example, due to a network issue) instead of restarting the download from the beginning. This enhancement is especially helpful for large downloads, such as the Android Emulator or system images, when internet connectivity is unreliable. In addition, if you have an SDK download task running in the background, you can now pause or resume the download using the controls in the status bar.

General fixes

This update also includes fixes for the following public issues:

APK Viewer
Connection Assistant
Data Binding
Deployment
Gradle
  • Issue #141927977: Constraint reason strings can take too much memory on large projects
  • Issue #112513722: Including navigation graph from different module breaks generating AndroidManifest.xml intent filters for deep links
  • Issue #141670031: Remove use of BuildListener#buildStarted() and Gradle#buildStarted() as they are deprecated in Gradle 6.0
  • Issue #140786113: Corrupt proguard file generated by AGP 3.5.0
  • Issue #136294346: Migrate from ArtifactTransform to TransformAction API
  • Issue #138731075: RenderScript NDK mode not able to emit 64bit bitcode
  • Issue #112513722: Including navigation graph from different module breaks generating AndroidManifest.xml intent filters for deep links
Gradle Sync
Navigation
  • Issue #140856013: Unexpected element <nav-graph> found in presentation module (clean arch)
Project System
Resource Manager
  • Issue #131976524: Feature Request: Image Asset Wizard, Support Two Lines for Text Option
Shrinker (R8)
View Binding

For information on new features and changes in all preview builds of Android Studio 3.6, 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.

Emulator 29.2.3 is now available in the Canary and Dev channels. Changes:

  • Windows MSVC build: Fixed incorrect optimization flags.
  • Google Maps UI: Fixed issues around GPX/KML route playback.
  • Keycode forwarding: We now maintain a mapping of host keyboard type to Android keyboard type, and only forward host keycodes when both the host and Android keyboard type can be determined and correctly mapped (An upcoming suitable system image is still required).
  • Vulkan: Removed support for 1D compressed textures (this is not a use case that is commonly considered).
  • Added new hardware property, hw.lcd.vsync (default 60), which, given an upcoming suitable system image build, will allow the guest's VSYNC rate to be controlled by the AVD configuration. This can be useful for testing apps on high frame rate (HFR) displays.
  • Windows AMD CPUs: Added VMM-side support for running on AMD CPUs on Windows without requiring Hyper-V/WHPX. This requires an upcoming hypervisor driver.

Android Studio 3.5.1 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.

This minor release improves stability and performance, and includes fixes for the following issues:

Gradle
Profilers
Core IDE
  • Issue #129457736: Reformatting changes the order of elements
  • Issue #138007389: Editor ends up with red symbols for resources
  • Issue #137778460: The Empty Activity template is missing the androidx.test.ext:junit dependency
  • Issue #139979809: Studio 3.5 asks for target emulator on "Run Project" even when one is already running
Compiler (R8)
  • Issue #139769782: Multiple entries with same key: Method com.google.firebase.iid.FirebaseInstanceId.zza Proto LLL com.google.android.gms.tasks.Task java.lang.String java.lang.String
  • Issue #131140696: Unexpected conversion of imprecise type: WIDE when d8 compile class FIle
Databinding
  • Issue #139738910: User gets compile error if their <variable> type omits the generic parameter
Deploying
  • Issue #139782879: The application could not be installed: INSTALL_PARSE_FAILED_NOT_APK

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.