Recent Changes

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

Android Studio 0.8.14 Released

posted Oct 23, 2014, 3:57 PM by Tor Norbye   [ updated Oct 24, 2014, 6:59 AM ]

[Updated: note: When installing this, if you have an embedded "sdk" folder inside Android Studio, please move it out of that folder before applying the update patch, then (optionally) put it back afterwards. For more information, see issue 78129.]

We've just released Android Studio 0.8.14 to the canary channel. This is just a bug fix release which addresses a few important issues in 0.8.13:
  • Improvements to the AVD manager: more feedback when creating and starting AVDs; better default RAM device defaults, better system API sorting, tweak emulator launch parameters, and the emulator output is now displayed in an output tab (which is important when the emulator runs into fatal problems, such as the device description requiring more RAM than available on the system)
  • Updated editor support for Android Lollipop: API metadata now includes Lollipop APIs, and the new XML drawable tags and attributes are such as <vector> are supported in editor XML validation and code completion:
Installation
You can only patch install 0.8.14 if you already have version 0.8.12 or 0.8.13.

For all older versions, you have to download a full version from the Canary download page. We know this is inconvenient, but there are technical reasons for this related to bugs we've discovered in the updater (and this is all described in detail in the release notes for 0.8.12; scroll down to the "No Patches" section.)

NOTE: 0.8.14 is currently only available in the canary channel, and Android Studio Beta will by default only look for updates in the beta channel, so if you want to update, open the preference dialog, go to the Updates category and change the channel setting.

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


Android Studio 0.8.13 Released

posted Oct 17, 2014, 3:44 PM by Tor Norbye

We've just released Android Studio 0.8.13 to the canary channel.  This is primarily a bug fix release relative to 0.8.12 from last week. 
However, it does include some support for Android Lollipop and device information and art for the new Nexus devices. For example, you can create AVDs for Nexus 6 and Nexus 9:
as well as Android 5.0 Lollipop system images:
The frame-screenshot-pulled-from-device feature, and the layout editor and XML rendering preview, now also support Nexus 6 and Nexus 9 artwork:
And finally, various editing features have also been updated to be Lollipop aware (e.g. the targetSdkVersion lint check suggests using 21, the Build.VERSION_CODES codename for Lollipop is now recognized, and so on.)

Installation
You can only patch install 0.8.13 if you already have version 0.8.12.

For all older versions, you have to download a full version from the Canary download page. We know this is inconvenient, but there are technical reasons for this related to bugs we've discovered in the updater (and this is all described in detail in the release notes for 0.8.12; scroll down to the "No Patches" section.)

NOTE: 0.8.13 is currently only available in the canary channel, and Android Studio Beta will by default only look for updates in the beta channel, so if you want to update, open the preference dialog, go to the Updates category and change the channel setting.

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

Android Studio 0.8.12 Released

posted Oct 9, 2014, 5:59 PM by Tor Norbye   [ updated Oct 9, 2014, 6:02 PM ]

We've just released Android Studio 0.8.12 to the canary channel (Note: There are no incremental patches to update to 0.8.12; you will need to download it separately -- and the reasons for that are explained below.)

The main improvements in this release are:
  • A brand new AVD Manager (AVDs are virtual devices for the emulator). The new AVD Manager is more tightly integrated with the IDE. For example, when attempting to run your app, you can quickly create a Nexus 5 or Nexus 7 AVD directly from the Run dialog.  Here's the new AVD list, where you can view and edit AVDs (and you can see how much disk space each AVD is using), you can start AVDs, etc.

    You can also create new AVD's, and it's easy to base these on existing hardware defaults, across different categories like phone, tablet, wear and TV:

    Once you've picked the hardware, you can then configure it with a specific architecture and Android version:

    Finally you can pick a display name, default orientation, GPU/snapshot options - or any of the more advanced settings such as the size of external storage and so on: 

  • When creating new projects, we now default to using HTTPS instead of HTTP for the Gradle wrapper. We've also added a lint (and a quickfix) to warn about existing projects using HTTP:
  • If you prefer to edit layout XML files manually (using the XML editor rather than the graphical layout editor), you can now click on the Options icon in the toolbar above the layout editor or the layout preview window, and choose to "Prefer XML editor":
    Once chosen, from now on newly created layouts will open with the XML editor rather than the layout editor.
  • The translation editor is now available from string editors:
  • The Android Project view is now chosen by default. You can switch back to the plain Project View by right clicking on the dropdown above the project view.
  • You can now import the tools namespace in XML with a quickfix: just write the tools: prefix and then the IDE will offer to insert the corresponding namespace declaration:

    Similarly, with the android: prefix it imports the Android namespace rather than showing all available namespaces and asking you to pick one.
  • A lot of bug fixes, among them a file descriptor leak which led to machine problems after repeated APK deploy operations, and several significant patch update mechanism bugs, described in detail below. And many others.

No Patches

We've found and fixed several significant bugs in the patching mechanism. One of these bugs meant that upgrading to a new version, while resulting in a functionally identical installation, would also result in slightly different binary contents (for example, some timestamps inside .jar files would differ). This meant that the actual binary signatures would not match, which broke for example the application signature checks.

We have now found and fixed that bug, but because there are many different binary variations of a given previous version, we cannot create a single patch to update to the new version. Therefore, for this version we will require a full download of the IDE. From this version forward we should be able to accurately install updates while preserving the application signatures.

Another common problem many users encountered on Windows was that the patch would refuse to install because files to be updated were still in use, typically by the Gradle daemon. We've now improved the patch dialog such that it finds and identifies the processes locking the files, and offering to kill them directly:
Since we are not releasing patches for this version, this improvement won't be apparent until our future patch updates, but this has been a frequently reported issue so we are happy to have finally resolved it -- and we are also working to make sure the Gradle daemon does not lock these files in the first place.)

Installation

As noted above, you cannot update via the builtin patch mechanism to this version; you have to download and install the version from the Android Studio 0.8.12 Downloads Page.

Problems?

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

Android Studio 0.8.11 Released

posted Sep 18, 2014, 4:58 PM by Tor Norbye   [ updated Sep 22, 2014, 5:45 PM by Siva Velusamy ]

We've just released Android Studio 0.8.11 to the canary channel, with the following improvements:
  • Support for the new version of the Android Gradle plugin (0.13), which was also released today (more info). Note however that the IDE continues to work with version 0.12 of the plugin! The new plugin supports (and requires) Gradle 2.1, so if you try to update a project with a Gradle wrapper which points to an unsupported version, the IDE detects this and offers to fix it:
    Similarly, if you try to import a Gradle project which does not contain a gradle wrapper, it will offer to let you insert one:

  • Lint errors can now display the full issue explanation text in-place in the editor. This is helpful when the short single-line error message does not fully explain what the problem is.
    There is a hyperlink at the end of the single line message, and a keyboard shortcut listed next to it; clicking the link or pressing the keybinding will replace the tooltip with the full explanation text:

    (All 200 lint checks have full explanations; please let us know if you find any of them that are still not clear.)

  • The layout editor now checks to make sure that you have the latest available versions of "layoutlib". This is useful because the rendering library is actually shipped with the SDK rather than with Android Studio, so even if you are staying up to date with Android Studio canary builds, you can easily use obsolete versions of the layout library. The Android L preview rendering library in particular was recently updated, so if you do not have the latest version the IDE will check and let you know:

  • We've merged in the latest changes from IntelliJ 13.1.5 RC (release notes). One of these fixes changes the directory layout in the Android Studio.app bundle
  • A lot of bug fixes!

Note: On Mac, the patch file is really big (165 MB, basically the full size of a download). The reason for this is that the OSX Android Studio.app directory structure changed significantly, and the patch mechanism does not handle this well. We chose to include a patch only from 0.8.10 since upgrading via patches is easier than having to download a new version separately. If you are on an older version of Studio on a Mac, please download the full zip file.


Installation
If you are already running Android Studio version 0.8.x, just restart it, or manually check for updates via Help > Check for Update... (on OSX, look in the Android Studio menu).  This will download and install a small patch rather than download a full IDE image. If you are using an older version, you'll need to download a full install from the downloads page.

NOTE: 0.8.11 is currently only available in the canary channel, and Android Studio Beta will by default only look for updates in the beta channel, so if you want to update, open the preference dialog, go to the Updates category and change the channel setting.

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

Android Studio 0.8.10 Released

posted Sep 11, 2014, 5:01 PM by Tor Norbye   [ updated Sep 11, 2014, 7:38 PM ]

We've just released Android Studio 0.8.10 to the canary channel. While we are primarily focusing on bug fixes these days, there are some notable new features:
  • New memory monitor. Open it via Tools > Android > Memory Monitor. This view lets you connect to a running app on a device and monitor its memory use over time.

    We plan to add more memory profiling features in the future.
  • Analyze > Inspect Code should be a lot more accurate now (as well as faster). In older builds, you could end up with hundreds of irrelevant warnings for things like empty XML tags in third party libraries like appcompat, or gradle script keywords flagged as spelling mistakes, or unused properties in local.properties, and even downright wrong suggestions, like suggesting you make a public Android activity package protected instead.
  • Lint: There are a few new lint checks. First, there is a lint check which looks for potential widget overlaps in RelativeLayouts. Second, the plurals detector has been updated with ICU 53 data, and it will now include specific examples of implied quantities, which helps explain for example why the quantity "one" should be including the actual number in the given language:
  • The Android window no longer shows a modal progress bar while adb starts up
  • Attempting to edit files outside the project (which used to be marked as read-only) now shows a dialog instead where you can deliberately unlock the files
  • Additional build failure scenarios (such as low memory conditions for the Gradle daemon, or socket permissions) are recognized along with hyperlink actions to resolve the problems
  • A lot of bug fixes!
Installation
If you are already running Android Studio version 0.8.x, just restart it, or manually check for updates via Help > Check for Update... (on OSX, look in the Android Studio menu).  This will download and install a small patch rather than download a full IDE image. If you are using an older version, you'll need to download a full install from the downloads page.

NOTE: 0.8.10 is currently only available in the canary channel, and Android Studio Beta will by default only look for updates in the beta channel, so if you want to update, open the preference dialog, go to the Updates category and change the channel setting.

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

Android Studio 0.8.9 Released

posted Sep 3, 2014, 5:36 PM by Tor Norbye

We've just released Android Studio 0.8.9 to the canary channel. Version 0.8.9 contains only a couple of bug fixes relative to 0.8.8. Assuming there are no unexpected regressions, we'll promote this build to the beta channel in a couple of days.

Installation
If you are already running Android Studio version 0.8.x, just restart it, or manually check for updates via Help > Check for Update... (on OSX, look in the Android Studio menu).  This will download and install a small patch rather than download a full IDE image. If you are using an older version, you'll need to download a full install from the downloads page.

NOTE: 0.8.9 is currently only available in the canary channel, and Android Studio Beta will by default only look for updates in the beta channel, so if you want to update, open the preference dialog, go to the Updates category and change the channel setting.

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

Android Studio 0.8.8 Released

posted Aug 28, 2014, 12:40 PM by Tor Norbye

We've just released Android Studio 0.8.8 to the canary channel. This is primarily a bug fix build. A couple of fixes that may be of particular interest are
  • Fixes to the font rendering in the translation editor introduced in 0.8.7 where on Windows and Linux many translations would just show up as empty rectangles like .
  • New error handling for a gradle cache bug which has affected a lot of users. The symptom is that syncing the project fails with a strange class loading error. We now recognize this scenario and offer a quickfix to work around it (which basically means discarding the Gradle cache and downloading the Gradle dependencies over again) :
Installation
If you are already running Android Studio version 0.8.x, just restart it, or manually check for updates via Help > Check for Update... (on OSX, look in the Android Studio menu).  This will download and install a small patch rather than download a full IDE image. If you are using an older version, you'll need to download a full install from the downloads page.

NOTE: 0.8.8 is currently only available in the canary channel, and Android Studio Beta will by default only look for updates in the beta channel, so if you want to update, open the preference dialog, go to the Updates category and change the channel setting.

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

Android Studio 0.8.7 Released

posted Aug 21, 2014, 3:06 PM by Tor Norbye   [ updated Aug 21, 2014, 3:09 PM ]

We've just released Android Studio 0.8.7 to the canary channel. The new version contains a large number of bug fixes, along with a couple of notable new features.

Translation Editor

First, we have a new translation editor, which lets you view and edit the translations for your strings in your application. To open it, right click on a file named "strings.xml" in your project and invoke Open Translation Editor (and in an upcoming release we'll add additional ways to open it, such as adding links from individual resource editors):

Here's what the editor looks like for a new blank project:

You can now click on the globe icon to add additional locales, and you can click on the plus icon to add additional messages. To edit a particular message, select the cell in the table, and then edit it in the details panel below the table. (In an upcoming release we'll enable inline editing in the table.)

Here's what the editor looks like for a more complete project, the I/O Schedule app:

Note that for a message that is not translated in every locale, the key will be shown in red. You can see that the empty cells are shown in a different color, but you can also hover over the key and it will list the missing locales. This is particularly useful when you have a large number of locales and not every locale is visible in the current horizontally scrolled viewport.

Note also that when you have many languages like this, you can click on a table header to grow a particular language column; here we've clicked on Italian. You can click again to collapse it back.

Bitmap rendering in the debugger

While debugging, you can now right click on variables in your app that are of type Bitmap, and invoke View Bitmap:
This will then fetch the associated data from the debugged process and render the bitmap in place in the debugger:

There is also a new lint check which ensures that in custom views, the associated declare-styleable for the custom view uses the same base name as the class name, since this code convention is used to for example tie attribute completion and refactoring updates together.

Installation
If you are already running Android Studio version 0.8.x, just restart it, or manually check for updates via Help > Check for Update... (on OSX, look in the Android Studio menu).  This will download and install a small patch rather than download a full IDE image. If you are using an older version, you'll need to download a full install from the downloads page.

NOTE: 0.8.7 is currently only available in the canary channel, and Android Studio Beta will by default only look for updates in the beta channel, so if you want to update, open the preference dialog, go to the Updates category and change the channel setting.

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

ADT Plugin for Eclipse 23.0.3 Released

posted Aug 8, 2014, 4:52 PM by Tor Norbye   [ updated Aug 8, 2014, 4:55 PM ]

We've just released ADT 23.0.3, which contains a small number of critical bug fixes. To update, invoke Help > Check For Updates. Make sure you that you are using the https, not the http URL to the update center:
https://dl.google.com/android/eclipse/

Additional release notes: http://developer.android.com/tools/sdk/eclipse-adt.html

Android Studio 0.8.6 Released

posted Aug 8, 2014, 4:05 PM by Tor Norbye

We've just released Android Studio 0.8.6 to the canary channel. Version 0.8.6 contains only a couple of bug fixes relative to 0.8.5. Assuming there are no unexpected regressions, we'll promote this build to the beta channel in a couple of days.

Installation
If you are already running Android Studio version 0.8.x, just restart it, or manually check for updates via Help > Check for Update... (on OSX, look in the Android Studio menu).  This will download and install a small patch rather than download a full IDE image. If you are using an older version, you'll need to download a full install from the downloads page.

NOTE: 0.8.6 is currently only available in the canary channel, and Android Studio Beta will by default only look for updates in the beta channel, so if you want to update, open the preference dialog, go to the Updates category and change the channel setting.

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

1-10 of 177