Recent Changes‎ > ‎

Android Studio 0.3.2 Released

posted Oct 31, 2013, 11:07 AM by Tor Norbye   [ updated Oct 31, 2013, 11:22 AM ]
We've just released Android Studio 0.3.2. The main feature in this release is support for Android KitKat:
  • Support for language features like the diamond operator, multi-catch, try-with-resources, strings in switches, etc.
    When creating a new project, you can specify a source language level:

    (For existing projects, make sure you are using at least version 0.6.1 of the Gradle plugin, and then set the android.compileOptions.sourceCompatibility and targetCompatibility flags in your build.gradle file, update your buildToolsVersion version to 19, and re-sync the project to take advantage of these features. For more details, see this section in the user guide.)

    The IDE will now for example flag identical catch clauses and suggest they be combined:

    You can apply the intention action to use a multi-catch statement:

    Note that you can use all these language features not just with Android KitKat, but with older versions of Android too! There is one exception to that: try-with-resources, which will require minSdkVersion 19. Therefore, Studio will flag any uses in your code of try-with-resources if your minSdkVersion is less than 19:
  • Support for recording the device screen as a movie.
    In the Android DDMS window, there is a new movie-record button below the screenshot capture button, which will capture a movie on the connected device and retrieve the MP4 file.
  • Debugger support for the new ArrayMap class
  • The Studio+SDK bundle now includes Android KitKat. With existing installs, open the SDK manager to install it.
In addition to the above Android KitKat related features, Studio 0.3.2 also fixes a number of bugs reported in 0.3.2, and adds support for previewing additional resource types:
  • Drawable XML files. When editing drawable XML files, you get an instant preview on the right:

    (In 0.3.2 non-rectangular shapes will show the wrong background color; this is fixed in 0.3.3.)
  • Menu XML files. Studio provides a sample rendering of the menu. This may not be accurate (since menu files can be used in various different contexts, and unlike layouts and drawables we are not directly running the framework code), but should still be helpful:

  • Widget XML files.
We also have a new,experimental build strategy that is 20 to 30% faster than the current one, making speed of project builds in Studio closer to command line builds. It is a work-in-progress and is disabled by default. You can enable it by going to the Preferences dialog, navigate to the Compiler > Gradle page and check the box "Use in-process build."


Installation
If you are already running Android Studio, 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 need to download a full install, visit the Android Studio Canary Build page. Note that if you are currently running 0.2.10 or 0.2.11, on Mac OSX, you will not be able to patch update to 0.3.2; you will need to install a fresh build due to a bug in the patch updater in those versions.

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