[go: up one dir, main page]

Release updates archive

Emulator 27.2.3 is now available in the Canary channel. It contains the following changes:
  • Added a shortcut to go to the Screen Recording UI: Control + Shift + R (Command + Shift + R on Mac). 
  • Changed the -phone-number-prefix command line option to -phone-number <number>, allowing setting of the full phone number. 
  • Screenshots can now be taken from the telnet console with either of these commands: 
    • screenrecord screenshot <destination-directory>
    • adb emu screenrecord screenshot <destination-directory>
    • Screenshots are in PNG format.
  • Fixed a crash on start.
  • The frameless emulator's resize rectangle has been updated to better follow the emulator's visual theme.

Performance and antivirus software

We have been conducting tests to determine how to improve loading and saving times for AVD snapshots. In performing these tests, we have found that antivirus software packages that monitor every read and write operation can decrease performance for loads and saves. If your antivirus software provides the ability to whitelist applications, try whitelisting the Android Emulator application and see if performance improves. Also, if you have additional antivirus software installed beyond that which is included with your operating system, run some tests yourself to determine which gives you better performance with applications like Android Emulator.


Android Studio 3.2 Canary 8 is now available in the Canary and Dev channels.


Inspect JNI References in the Memory Profiler:


If you deploy your app to a device running Android 8.0 (API level 26) or higher, you can inspect memory allocations for your app’s JNI code using the Memory Profiler. While your app is running, select a portion of the timeline that you want to inspect and select JNI heap from the drop-down above the class list, as shown below. You can then inspect objects in the heap as you normally would and double-click objects in the Allocation Call Stack tab to see where the JNI references are allocated and released in your code.






General bug fixes:

This update includes fixes for the following public issues:
  • Issue#72614343: Gradle build fails to recover from invalid cached library




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

Emulator 27.2.2 is now available in the Canary channel. It contains the following changes:
  • Fixed hang on startup if the QEMU main loop takes too long to start, which can happen under high resource usage / network latency conditions.
  • Fixed an intermittent crash on startup if -no-audio is specified on the command line.

We just published ConstraintLayout 1.1.0 beta 6. This is the final RC before 1.1.0 stable. It’s available from the google maven repository:

dependencies {
    compile 'com.android.support.constraint:constraint-layout:1.1.0-beta6'
}

Documentation is available on https://developer.android.com/reference/android/support/constraint/ConstraintLayout.html

Changes:
  • Improved optimizer performances and exposed it (see documentation)
  • Additional experimental performance work with Chains (turned off by default)
  • Fixed several issues with margins support in Chains
  • Centering larger chains on smaller endpoints now works
  • Fix barrier issues (wrap_content behavior)
  • ConstraintSet issues with RTL fixed

Android Studio 3.2 Canary 7 is now available in the Canary and Dev channels.


Smart editor features for CMake build files:
If you use CMake to add C and C++ code to your project, Android Studio now includes smart editor features while you edit your CMake build scripts, such as:
  • Syntax highlighting and code-completion: The IDE now highlights and suggests code completion for common CMake commands. Additionally, you can navigate to a file by clicking it while pressing the Control key (or Command on MacOS).
  • You can now use IntelliJ’s code reformat option to apply code styles to your CMake build scripts.
  • Safe file renaming and deletion: The IDE’s built-in refactoring tools now also check if you are renaming or deleting files that you reference in your CMake build scripts.



General bug fixes:

This update includes fixes for the following public issues:
  • Issue#73335428: Relative path for ANDROID_HOME breaks the build
  • Issue#37104761: Enforce check that targetSdkVersion is not less than minSdkVersion
  • Issue#37095605: AS/Lint should check for non-localized version of drawable resource
  • Issue#73981396: Request: add warning when using Locale.getDefault() inside static-final variable
  • Issue#74128292: Kotlin import flagged for InlinedApi despite constant used correctly
  • Issue#74225292: Unit test configuration by context for entire directory in Kotlin is creating duplicate
  • Issue#64727495: Use dependency on the latest Espresso library.
  • Issue#37119265: Do not use deprecated version of LargeTest
  • Issue#70578119: C++ compiler incorrectly reporting STL type errors



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


Android Studio 3.1 RC3 is now available in the Beta channel.

This update includes fixes for the following public issues:

  • Issue#73800636: Main dex list not tracing all classes annotated with runtime annotations
  • Issue#70909581: okhttp fails sporadically on android 4.x mediatek devices
  • Issue#73122455: External CMake building broken by using Gradle plugin newer than 3.0.1



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

Emulator 27.2.1 is now available in the Canary channel for Windows, Mac, and Linux, bringing the fixes and enhancements from 27.2.0 to Windows.

Emulator hang fix
We addressed a major source of emulator hangs on Windows by fixing an issue in QEMU 2.9. If you are still experiencing emulator hangs, please file an issue to Issuetracker. We are actively investigating emulator hangs and are making this a priority.
Screen recording enhancement
Audio encoding for screen recording has been moved off of the QEMU main loop to a separate thread to increase reliability and performance.

Other changes:
  • Fixed a crash on saving recorded video from screen recording.
  • Fixed an issue in which the VirtualScene camera's controls could steal focus too frequently on Xfce, and the mouse pointer could flicker.
  • Telephone and SMS are now properly deactivated when airplane mode is on.
  • Mac: Emulator window now properly shows a drop shadow when frameless mode is disabled.
  • To address issues caused by not having enough free disk space for snapshots, the emulator now checks for sufficient free disk space on startup, and will not start unless at least 2 GB is free.


Android Studio 3.2 Canary 6 is now available in the Canary and Dev channels.


New Code Shrinker

R8 is a new tool for code shrinking and obfuscation that replaces ProGuard. You can start using the preview version of R8 by including the following in your project’s gradle.properties file:

android.enableR8 = true


Changed default ABIs for multi-APKs

When building multiple APKs that each target a different ABI, Android plugin for Gradle 3.2.0-alpha5 and higher no longer generate APKs for the following ABIs by default: mips,  mips64, and armeabi.

If you are using NDK r16b or lower and you want to continue to build APKs for those ABIs, you need to include them explicitly in your app’s build.gradle file, as follows:

splits {
   abi {
       include 'armeabi', 'mips', 'mips64'
       ...
   }
}

NDK r17 users: If you are using NDK r17 beta 1 or higher, you can no longer build APKs for mips,  mips64, or armeabi using Android plugin for Gradle 3.2.0-alpha5 or higher.


General bug fixes

This update includes fixes for the following public issues:

  • Issue#67035929: Wrong tips "super call" with Kotlin plugin.
  • Issue#73592522: Bug: preview still shown when closing layout editor
  • Issue#73857733: Lint flags REQUEST_INSTALL_PACKAGES as "Only granted to system apps" even though it it required
  • Issue#73873828: False positive test with a misconfigured test layout xml
  • Issue#73747114: Incorrect warning for VisibleForTesting using kotlin's file scope




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


Android Studio 3.1 RC2 is now available in the Beta channel.




Changed default ABIs for multi-APKs


When building multiple APKs that each target a different ABI, Android plugin for Gradle 3.1.0 and higher no longer generate APKs for the following ABIs by default: mips, mips64, and armeabi.


If you are using NDK r16b or lower and you want to continue to build APKs for those ABIs, you need to include them explicitly in your app’s build.gradle file, as follows:


splits {
   abi {
       include 'armeabi', 'mips', 'mips64'
       ...
   }
}



NDK r17 users: If you are using NDK r17 beta 1 or higher, you can no longer build APKs for mips, mips64, or armeabi using Android plugin for Gradle 3.1.0 or higher.




General bug fixes


This update includes fixes for the following public issues:
  • Issue#73730693: Action search breaks when APK plugin disabled.
  • Issue#73450636: D8 desugaring fails with Espresso 3.0.2-alpha1
  • Issue#73183204: Can't build w/ 3.1 beta 1 or 2 - Could not get unknown property 'manifestFile' for task
  • Issue#73563032: Lint is detecting a "CheckResult" issue when using lambdas in Kotlin
  • Issue#73397414: "Run->Run App" quits right after Gradle (trying to) build without messages or launching app.


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

Emulator 27.2.0 is now available in the Canary channel for Mac and Linux. (Windows coming soon.)

The Linux version of the emulator is now built using a modern Clang C++ toolchain. This change fixes the long-standing issue of the emulator failing to start due to libGL and libstdc++ errors

Other fixes:
  • Many ADB zombie processes could get spawned by the emulator when ADB versions mismatched. (issue 73094692)
  • Spurious pstore-related warning message often displayed. (issue 73249556)
  • Multiple webcams were not supported on Mac. Now webcam0 and webcam1 can be used together.
Enhancements to Quick Boot snapshots:
  • Load Now button added to Settings page, allowing loading of a Quick Boot snapshot without requiring a restart of the emulator.
  • Incremental saving now applies to the Save Now button, allowing for faster saves. 
Please file issues if these new functions are slow or buggy. We are actively working on optimizing snapshot saves.



Android Studio 3.2 Canary 5 is now available in the Canary and Dev channels.


This update includes fixes for the following public issues:


  • Issue#73334521: Unable to import an SVG file with fractional dimensions
  • Issue#72313724: Removed jars in Desugar classpath
  • Issue#67597902: Remove timestamps from AARs
  • Issue#62075688: Request: sort attributes of views so that "layout_toRightOf"&"layout_toEndOf be together, and so layout_toLeftOf&layout_toStartOf
  • Issue#73183202: Add Lint Rule for Intent#setType()
  • Issue#69661432: Gradle project sync failed: CreateProcess error=216 on Windows 32 bits



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



Android Studio 3.1 RC 1 is now available in the Beta channel.


This update includes fixes for the following public issues:

  • Issue#73644073: AS 3.1 Beta 2, UnsupportedOperationException: why generate DataBindingXmlReferenceContributor$2.getReferencesByElement
  • Issue#72313724: Removed jars in Desugar classpath



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