Recent Changes

The following features and bug fixes were recently checked in. For complete details, see the git changelogs at

Android Studio 2.0 RC 1 Available

posted Mar 30, 2016, 11:07 AM by Chris Iremonger   [ updated Apr 5, 2016, 11:06 PM ]

Android Studio 2.0 RC 1 and Emulator 25.1 RC 1 are now available in the Beta channel. If you have 2.0 Preview or Beta installations, please update to RC 1 and let us know if you have any issues.


We have done extensive additional testing of both Android Studio and the Emulator. We have also verified these with a wide range of internal and external developers. We want to make sure we get Instant Run and the new emulator just right before promoting it to stable. Please continue to give us feedback and let us know if you run into any problems!  (via Help > Submit Feedback in Android Studio and For the Emulator In the tools menu select the three circles > Help > File a Bug.)


Android Studio RC 1

This build incorporates several more fixes for Instant Run, which is working at parity with 1.5.1. With Instant Run enabled (on by default), the first full build will be slightly slower than 1.5.1 as we create multiple dex files. Subsequent incremental builds will be much faster than 1.5.1. Full and incremental builds will be slightly faster than 1.5.1 even if you disable Instant Run due to optimizations we’ve made -- but enable Instant Run for max performance. If you want more information on Instant Run, be sure to check out the updated Instant Run documentation.


Reminder: If you want to test out Android N features, move to the Canary Channel and use Android Studio 2.1.


Emulator 25.1

Emulator 25.1 release candidate is also available in the SDK Preview channel. This version includes bug fixes to taking screenshots and our APK drag and drop installation onto the Emulator.

If you are using Android Studio 2.0+ you should be prompted to upgrade through the SDK manager or through the built-in Android Studio patch mechanism (Check for Updates).


Android Studio Installation

You can update your current 1.5 or 2.0 installation to 2.0 RC 1 by using the built-in patch mechanism (make sure you switch to the Beta channel first, if necessary.)


IF YOU WANT TO KEEP YOUR 1.5 STABLE VERSION AND RUN 2.0 STABLE SIDE BY SIDE READ ON. Patch-updating will replace the existing installation with a preview version. If you want to keep 1 stable version and also have 1 preview version, download a separate installation of 2.0 from the Android Studio 2.0 RC 1 page. You can keep 1.5 and 2.0 installed side by side; they use separate settings and cache directories.


Problems?

If you run into problems, be sure to check the Known Issues page which we'll update as necessary.


Android Studio 2.1 Preview 4 Available

posted Mar 25, 2016, 9:50 AM by Tor Norbye

We've just pushed Android Studio 2.1 Preview 4 to the canary channel. This build incorporates more bug fixes for Instant Run. There are a couple of small UI changes: there is a "Rerun" action in the toolbar next to run, which lets you build and restart the process with one click (or keyboard shortcut). And in the Build menu there is a "Clean Rerun" action which performs a full clean, build, install and run.


Installation

You can update your current 2.0 or 2.1 Preview installation to 2.1 Preview 4 via the built-in patch mechanism (Check for Updates). Make sure you switch to the Canary channel, if necessary.

You can also update from 1.5 to 2.1 Preview 4 via the patch mechanism, but you may not want to do that: See our page about how to keep multiple installations simultaneously while Studio is in preview mode.

You can also download a full zip of 2.1 Preview from the Android Studio 2.1 Preview 4 page.


Problems?

If you run into problems, be sure to check the Known Issues page which we'll update as necessary.


Android Studio 2.1 Preview 3 Available

posted Mar 16, 2016, 2:09 PM by Tor Norbye

We've just pushed Android Studio 2.1 Preview 3 to the canary channel. This build incorporates a number of fixes to support the Android N Preview SDK, as well as incorporating all the Instant Run and other IDE fixes from 2.0 Beta 7, also published today.


Installation

You can update your current 2.0 or 2.1 Preview installation to 2.1 Preview 3 via the built-in patch mechanism (Check for Updates). Make sure you switch to the Canary channel, if necessary.

You can also update from 1.5 to 2.1 Preview 3 via the patch mechanism, but you may not want to do that: See our page about how to keep multiple installations simultaneously while Studio is in preview mode.

You can also download a full zip of 2.1 Preview from the Android Studio 2.1 Preview 3 page.


Problems?

If you run into problems, be sure to check the Known Issues page which we'll update as necessary.

Android Studio 2.0 Beta 7 Available

posted Mar 16, 2016, 2:04 PM by Tor Norbye

We've just pushed Android Studio 2.0 beta 7 to the beta channel. Relative to beta 6 a few week ago, this fixes a few more user reported bugs related to Instant Run (in particular, faster builds on Windows, better support for multi-process apps, handle multiple activities better, and a few correctness fixes), as well as fixes to make the IDE run better on Windows.


Installation

You can update your current 2.0 Preview installation to 2.0 Beta 7 via the built-in patch mechanism (Check for Updates).

You can also update from 1.5 to 2.0 Beta 7 via the patch mechanism, but you may not want to do that: See our page about how to keep multiple installations simultaneously while Studio is in preview mode.

You can also download a full zip of 2.0 Beta from the Android Studio 2.0 Beta 7 page.


Problems?

If you run into problems, be sure to check the Known Issues page which we'll update as necessary.

Emulator 2.0 Preview Release Notes

posted Mar 11, 2016, 9:29 PM by Vince Harron

25.0.10

  • Change multitouch from Alt to Ctrl (Cmd on OSX) (b.android.com/202934)

  • Improve GLES performance

  • Rename "Grab screen focus with mouse" to "Send keyboard shortcuts to"

  • Clarify keyboard shortcut settings (b.android.com/202934)

  • Fix segfault on startup when GPU info badly parses (b.android.com/202879)

  • [Windows/OSX] confirm installed HAXM is 6.0+ (b.android.com/202285)

  • Ensure that the extended window is fully visible (b.android.com/202414)

  • [OSX] Change the menu bar and minimized name (b.android.com/197060)

  • Fixed a crash on exit (b.android.com/202321)

  • (SDK Tools) Add ProGuard rules for the @Keep support annotation

25.0.9

  • Crash fixes

  • Further reduce flicker on zoom (b.android.com/202415)

  • Remove the "virtual sensors" keyboard shortcut

  • Fix an out-of-bounds access in SizeTweaker

  • Fix renderbuffer object support in GLES 2

  • Customizing shortcuts by editing keyset.default is no longer supported

25.0.8

  • Support unicode file paths on Windows

  • Update the multitouch UI with a 2-finger swipe

  • Respect "initial orientation" AVD setting

  • Enforce a minimum size for the emulator (b.android.com/201994)

  • Remove a spurious pop-up during crash reporting

  • A few aesthetic changes

  • Enforce a minimum size for the emulator (b.android.com/201994)

  • Let user switch to software GPU when OpenGL driver crashes (b.android.com/201549)

  • Ensure exiting zoom mode works properly (b.android.com/200411)

  • Fix null pointer access when checking gpu mode (b.android.com/201966)

  • Avoid rotation-related resize edge case

  • Fix handling of "-prop xxx=yyy" on the command line (b.android.com/199437)

  • Send more than 1 digit of altitude with the GPS location

  • Update the keyboard map to include more non-ASCII characters (b.android.com/200042)

  • Update the lat/lon values before sending the location

  • Make D-Pad look good on high-density screens

  • Detect and force software on blacklisted GPU drivers (b.android.com/201423)

  • If your host OpenGL driver doesn't support RGB888, use RGB8888 instead

  • Use 24-bit depth buffer on checking WGL extensions

  • Prevent the emulator from entering OSX split screen

  • Change maximum window size restrictions (b.android.com/201708)

  • Fix some keyboard shortcut issues

  • Apple camera synchronized access (b.android.com/200915)

  • Make emulator usable on high-DPI Windows displays

  • Update the "Documentation" link (b.android.com/201499)

  • Suggest gfx driver updates more liberally

  • Crash fix (b.android.com/201333)

  • Show error message and exit when not enough memory

Android Studio 2.1 Preview now available for Android N Preview

posted Mar 9, 2016, 9:59 AM by Chris Iremonger

We've released Android Studio 2.1 Preview in the canary channel to support the Android N Developer Preview.


Android Studio 2.1 (canary channel) is a minor update to Android Studio 2.0 (beta channel) that includes changes to improve support for Java 8 and the new Jack compiler. To use Java 8 language features when developing with the Android N Preview, you currently need to use the Jack compiler provided with Android Studio 2.1. An updated New Project wizard also generates the correct configuration for projects targeting the Android N Preview.


Android Studio 2.1 also improves support for the latest Android Emulator 2.0 Beta, which provides the best performance with the Android N Preview system image.

Screen Shot 2016-03-08 at 1.54.30 PM.png

You should be aware of the following known issues in Android Studio 2.1 as they relate to development with the N Preview:


  • Instant Run currently is not compatible with the Jack compiler, so it is disabled for projects configured to use the Jack compiler until the fix is applied. (Using the Jack compiler is necessary only when using Java 8 language features.)

  • Various tools that read .class files (such as JaCoCo, Mockito, and some lint checks) are currently not compatible with the Jack compiler.

  • Native debugging (with LLDB) currently does not work with Android N Preview.


Also see the Known Issues page for information about other Android Studio problems, which we'll update as necessary. If you find other problems with Android Studio, please report bugs.


We will be updating Android Studio 2.1 quite frequently in the canary channel as we fix issues and enable new functionality. Please make sure to update to the latest version before filing bugs.


For more information about developing with the N Preview, see developer.android.com/preview.

Android Studio 2.0 Beta 6 Available

posted Feb 29, 2016, 1:54 PM by Tor Norbye

We've just promoted beta 6 from the canary to the beta channel. Relative to beta 5 (the previous build in the beta channel) we've fixed or disabled Instant Run for a number of critical bugs.


This build fixes a couple of important bugs related to instant run:

  • Apps that were using multiple processes (via android:process in the manifest) were not being updated properly with Instant Run. For the time being, we have turned off Instant Run in such a scenario.

  • Certain devices that have an incorrect version of the “run-as” command behaved incorrectly with instant run. This would manifest as Instant Run being unable to upload a new version when the application wasn’t running. We now properly handle this scenario and gracefully degrade to doing a full apk installation.

  • Instant Run was not working properly if the application was in the background. We now do the correct updates in such a scenario - the application will be terminated and restarted.

  • We automatically turn off Proguard or Jacocco when used with Instant Run.

  • Handling of native libraries :
    • changing source code of a native library should trigger a coldswap.
    • hotswap can lead to UnsatisfedLink exceptions
  • Applications using AndroidAnnotations are now compatible with Instant Run.
  • During hot swaps, initial code and incremental updates are no longer loaded from a different class loader

We really appreciate all the wonderful and detailed feedback on the 2.0 preview and beta releases. Thank you and please continue to give us feedback!  (via Help > Submit Feedback.)


Installation

You can update your current 2.0 Preview installation to 2.0 Beta 6 via the built-in patch mechanism (Check for Updates).

You can also update from 1.5 to 2.0 Beta via the patch mechanism, but you may not want to do that: See our page about how to keep multiple installations simultaneously while Studio is in preview mode.

You can also download a full zip of 2.0 Beta from the Android Studio 2.0 Beta 6 page.


Problems?

If you run into problems, be sure to check the Known Issues page which we'll update as necessary.


Android Studio 2.0 Beta 6 Available in the Canary Channel

posted Feb 25, 2016, 8:49 PM by Chris Iremonger   [ updated Feb 29, 2016, 1:53 PM by Tor Norbye ]

We've just pushed Android Studio 2.0 Beta 6 to the canary channel, as well as 2.0.0-beta6 of the Gradle plugin to jcenter. If all goes according to plan, we hope to roll this out to the beta channel in a few days.


This build fixes a couple of important bugs related to instant run:

  • Apps that were using multiple processes (via android:process in the manifest) were not being updated properly with Instant Run. For the time being, we have turned off Instant Run in such a scenario.

  • Certain devices that have an incorrect version of the “run-as” command behaved incorrectly with instant run. This would manifest as instant run being unable to upload a new version when the application wasn’t running. We now properly handle this scenario and gracefully degrade to doing a full apk installation.

  • Instant Run was not working properly if the application was in the background. We now do the correct updates in such a scenario - the application will be terminated and restarted.

  • We automatically turn off Proguard or Jacocco when used with Instant Run.

  • Handling of native libraries :
    - changing source code of a native library should trigger a coldswap.
    - hotswap can lead to UnsatisfedLink exceptions

  • Applications using AndroidAnnotations are now compatible with InstantRun.

  • During hot swaps, initial code and incremental updates are no longer loaded from a different class loader


Note that you need to use the latest version of Gradle and Studio together, and in this build we automatically update the Gradle version if already using a previous non-stable (e.g. 2.x) preview version.


Thanks for testing our preview builds, and please continue reporting bugs!  (via Help > Submit Feedback.)


Installation

You can update your current 2.0 Preview installation to 2.0 Beta 6 via the built-in patch mechanism (Check for Updates).

You can also update from 1.5 to 2.0 Beta via the patch mechanism, but you may not want to do that: See our page about how to keep multiple installations simultaneously while Studio is in preview mode.

You can also download a full zip of 2.0 Beta from the Android Studio 2.0 Beta 6 page.


Emulator 2.0 Preview Release Notes

posted Feb 24, 2016, 8:57 AM by Vince Harron

A new Emulator 2.0 Preview was released Friday in the SDK Tools package.  These are the details of what has changed since the first Emulator 2.0 preview.  Version numbers show are for the SDK Tools package.

25.0.7
  • Remove 32-bit Linux binaries

  • Add warning messages for deprecated window size flags. ("-scale" and "-dpi-device")

  • Disabled "-ports" and "-savevm-on-exit" parameters in new emulator

  • Zoom-related fixes (b.android.com/200408)

  • Windows/Mac - glDraw(Elements|Arrays) will now validate pointers to assist in debugging OpenGL (b.android.com/200655)

  • Support glDrawElements with GL_UNSIGNED_INT

  • Fix HAXM sign conversion when using large ram sizes

  • Limit VM memory to maximum HAXM memory

  • Crash fix - KmlParser didn't check for null xml content (b.android.com/201126)

  • Crash fix - GpxParser could potentially crash on bad xml in gpx file (b.android.com/200912)

  • Mac - Crash when unplugging monitors

  • Mac - Fix crash when showing error dialogs (b.android.com/200809)

  • Prettied up the emulator help tab

  • Crash fixes (b.android.com/201151, b.android.com/200926, b.android.com/199595)

  • Don't take a screenshot when the Help page is displayed (b.android.com/200669)

  • Change "SDK Location" setting to "Backup ADB"

25.0.6

  • The deprecated “-scale” parameter will now be ignored. (b.android.com/200522)

  • Added “-use-system-libs” command-line option. (b.android.com/197254)

  • Emulator should leak fewer threads. (b.android.com/200572)

  • Fixed an issue with EADDRINUSE when the emulator gets the same PID as a previous emulator.

  • More diagnostic information has been added to crash reports.

  • The zoom button now shows the correct state. (b.android.com/200408)

  • Linux - glDraw(Elements|Arrays) will now validate pointers to assist in debugging OpenGL (b.android.com/200655)

  • Macbook Pro webcams will no longer cause an error on startup. (b.android.com/200404)

  • For convenience, a checkbox has been added to the crash reporter for sending further reports automatically in the background.

  • Fixed zoom on OSX/Windows.

  • For the time being, multi-touch support has been disabled for api <= 21. (b.android.com/199289)

  • Linux - CPU usage has been lowered. (b.android.com/180412)

  • Fixed crash in QImage::smoothScaled. (b.android.com/199726)

  • cache.img will now be created automatically if missing in build environment. (b.android.com/200223)

  • Windows - Fixed some resizing edge cases.

  • Slightly improved ADB on older emulator images.

  • Fixed a crash in gui_update. (b.android.com/200070)

  • Fixed a minor typo in the console interface for GSM emulation. (b.android.com/63260)

25.0.5

  • Fix crash on startup when keys are pressed.

  • Reduced spurious OpenGL ES error messages in logcat.

  • Mac - Fixed crash on exit on Cmd+Q.

  • Mac - Fixed crash on exit with older Android versions.

  • Mac - Introduced workaround for crash on exit when running no-skin AVDs. (b.android.com/198256)

  • Fixed another crash on exit. (b.android.com/200132)

  • Fixed some bad reference counting in skin images.

  • Windows - Improved Ctrl-C behavior. (b.android.com/199844)

  • Force error dialog to show up on top of main Window. (b.android.com/200055)

  • Report an error when screenshot grabbing fails due to bad SDK path. (b.android.com/199278)

  • Use hw.lcd.depth in config.ini as default bits-per-pixel.

  • Improved support for 32-bit, high resolution software rendering.

  • Mac - Added support for some Alt-based special characters. (b.android.com/200042 partial fix)

  • Removed the "-scale" flag and "window scale" commands. (b.android.com/199843)

  • Minor UI tweaks.

  • Stopped leaving zombies when subprocess is forced to terminate.

  • The emulator window should now stop from drifting on resize.

  • Fixed crash in -no-window mode with certain skins and older Android versions.

  • Fixed handling of "-prop xxx=yyy" on the command line. (b.android.com/199437)

  • Added support for the ANDROID_ADB_SERVER_PORT environment variable.

  • Mac - Removed some possible 'could not lock' messages on exit.

  • Fixed a crash caused by a data race. (b.android.com/199595)


25.0.4
  • Fixed a crash in native OpenGL applications when using unsupported functions such as glBindVertexArrayOES. (b.android.com/199346)

  • Can now detect graphics driver-related crashes with better accuracy.

  • It is now easier to see the selected tab on the extended window.

  • Trackball mode is now supported. (b.android.com/199190)

  • Updated visuals for the multi-touch UI.

  • Removed the “themed” line of pixels beneath the nav bar (b.android.com/196831)

  • Fixed an issue where AVD Manager reports error after successful emulator launch.

  • Fixed a crash on exit if ‘adb install’ is still running.

  • Mac - Fixed issue where a deadlock freeze can happen with multiple monitors. (b.android.com/198811)

  • Mac - Window resizing is now more responsive.

  • Mac - Quitting from OS X menu bar (including Cmd+Q) works now.

  • Mac - Fixed a crash on exit for AVDs using webcams.

  • Mac - Fixed ‘uncommitted CATransaction’ crash. (b.android.com/198256)

  • Windows - Added Mesa renderer ("-gpu mesa") support. The boot animation is currently disabled in this situation to speed up boot. (g.android.com/199168)

  • “Ungrab keyboard” now has a real shortcut key. (b.android.com/197067)

  • If VirtualBox is running, the crash has been fixed to an exit with a descriptive error message. (b.android.com/197915)

  • Removed “anisotropic filtering unsupported” message.

  • Added comments and report id to crash report dialog.

  • Fixed crash when the skin bitmap is null (b.android.com/198429)

  • Multiple screens are now taken into account when positioning the emulator window.

  • Fixed intermittent hangs when using ‘adb push’. (b.android.com/198879, b.android.com/199551)


25.0.3
  • Increased default AVD core count to 2.

  • On graphics driver crashes, suggest software rendering.

  • Windows - The internal storage size of the AVD is now correctly honored.

  • Windows - Fixed a crash on exit. (b.android.com/198867)

  • The multi-touch UI is now hidden when the emulator loses focus (as in the case of Alt-Tab on Linux).

  • Removed border peeking out from under the stacked widget at the top of extended controls window

  • The device’s default location has been set to the Googleplex.

  • Fixed issue with black scrollbars.

  • Fixed various crash issues. (b.android.com/198812, b.android.com/198276, b.android.com/198895)

  • -no-window now works with any skin.


25.0.2
  • Enabled multi-touch UI for pinch/rotate gestures. Press Alt to use the UI.

  • Improved Windows/Mac boot speed.

  • Fixed touch input on API-10.

  • Improved UI responsiveness.

  • Added support for the -no-window command line option.

  • Now recommend x86 AVDs if supported on host CPU.

  • Removed a bogus tool tip from the SEND MESSAGE button.

  • Fixed issues with a zombie crash reporting process/UI. (b.android.com/198257)

  • Added option to collect system info on crash.

  • Removed a spurious error pop-up on "end call".

  • Added option for the emulator window to be always on top.

  • Fixed minor issues with zoom.

  • The emulator can now be rotated left/right using keyboard shortcuts.

  • Rotation buttons have been added for 360 degree and left/right rotation.

  • Reduced flicker during rotation/zoom/resize.

  • Anisotropic filtering support has been added.

  • Fixed a crash having to do with framebuffer initialization (b.android.com/197860)

  • Fixed appearance of "play" button icon on Retina screen.

  • Fixed a crash when using the Mesa renderer and pressing the power button.

  • Added support for -dns-server, -http-proxy, -wipe-data, and -port.

  • Fixed spurious back button press on typing ‘9’.


25.0.1
  • Fixed crash on screenshot.

  • Fixed hang on launch if network is unavailable.

  • Fixed a crash on exit.

  • Windows/Linux - Reduced flicker during resize.

  • Mac - Improved appearance of tool window on retina displays.

  • Emulator 2.0 can now be started from $PATH. (b.android.com/197084)

  • Improved zoom controls.

  • Reduced shifting of the emulator window during rotation. (b.android.com/196770)

  • Added a ‘help’ hotkey.

  • Mac - Changed the "home" key shortcut.

  • Fixed a memory leak when adb is launched from emulator (such as when taking screenshots).

  • Windows - Fixed a freeze on exit.

  • The Mesa renderer can now be used.

  • Fixed hang when receiving a phone call.

  • Fixed some on-shutdown corruptions of AVD storage.

  • Changed some hotkeys' prefixes from Ctrl+Shift to Ctrl+Alt.

  • The Android SDK location can now be set from the emulator.

  • Added -netspeed, -netdelay and -netfast command line options.

  • The system image is now mounted as read-only.

  • Added support for GSM emulation.

  • Mac - Fixed "Could not lock voice for audioDeviceIOProc" error on exit.


25.0.0

Android Studio 2.0 Beta 5 Available

posted Feb 18, 2016, 6:53 PM by Tor Norbye

We've just promoted beta 5 from the canary to the beta channel. Relative to beta 2 (the previous build in the beta channel) we've fixed a number of critical bugs in Instant Run -- from apps not showing the most recent changes, to apps crashing, to apps getting passed weird intent data.

Note that you need to use the latest version of Gradle and Studio together, and in this build we automatically update the Gradle version if already using a previous non-stable (e.g. 2.x) preview version.

Note also that all Instant Run settings have been reset to their defaults in this build. The reason we had to do this is in beta4 is that these settings were actually per project settings, not per user. But this is not what many users expected (so they'd tweak the settings in one project and then be surprised when in another project the values were different). To fix this we've changed the settings to be per user instead. However, that moves the storage location for the settings, which is why the values are all reset.  Go to Settings > Build, Execution, Deployment > Instant Run if you want to tweak them again.

There are still a few known Instant Run bugs we're still working on which may affect some users:
  • Possible clean build performance regression. When using Instant Run with a project configured for Legacy Multidex, i.e. build.gradle is configured with minSdkVersion 20 (or lower) and multiDexEnabled true, build performance may decrease when deploying a clean build to target devices running Android 5.0 (API level 21) or higher. After the initial clean build, incremental builds will be significantly faster, and Instant Run will deploy code and resource changes as normal. Alternatively, consider creating a product flavor with minSdkVersion 21 to improve clean build performance during development.
  • Instant Run may fail when deploying to some Samsung devices when the app isn’t running on the device when you're pushing the changes (this uses adb to push the changes to the device instead of communicating directly with the app, and this can fail on some devices.)
  • Instant Run may cause apps that are using certain 3rd party libraries to crash (for example, Realm.) This happens if code in the application is placed in the same package as a library dependency and it attempts to access package private methods in that library.
  • If your app is using android:process in the manifest, Instant Run may not work correctly
We wanted to add a special note that we are very thankful for our community, and the wonderful, detailed feedback on 2.0 preview and beta releases. We work very hard to drive the IDE forward rapidly for the entire Android developer community. 2.0 contains major innovations, many driven by requests from our audience. Many of you have engaged closely with us to drive up stability on complex changes. Thank you!

Installation
You can update your current 2.0 Preview installation to 2.0 Beta 5 via the built-in patch mechanism (Check for Updates).
You can also update from 1.5 to 2.0 Beta via the patch mechanism, but you may not want to do that: See our page about how to keep multiple installations simultaneously while Studio is in preview mode.
You can also download a full zip of 2.0 Beta from the Android Studio 2.0 Beta 5 page.

11-20 of 273