Recent Changes‎ > ‎

Android Studio 0.5.5 Released

posted Apr 16, 2014, 5:00 PM by Tor Norbye   [ updated Apr 16, 2014, 5:01 PM ]
We've just released Android Studio 0.5.5 with the following improvements:
  • Update to a new IntelliJ 13.x EAP build: 135.667. This picks up the following tags:
  • Editing:
    • New resource type inspection. This finds errors where you are passing the wrong type of resource to a method which accepts a resource id:
      The resource type metadata is also used to drive code completion:
      Choosing the first item here will insert R.layout at the caret location and import the R class if necessary.
    • Support for the new annotations which shipped with the most recent version of the support library, such as @NonNull and @Nullable, as well as annotations to declare resource types and valid constants. Add a dependency on com.android.support:support-annotations:+ to use these in your projects. In the upcoming 0.10.x version of the Android Gradle plugin, the plugin will extract these annotations into your libraries' AAR files such that clients of your library can get the same resource type checks as is shown above for the SDK APIs.
    • Removed many incorrect @Nullable annotations from the SDK builtin annotation database, so there should be fewer incorrect null warnings in your code.
    • The Gradle build file editor is now smarter about the Android Gradle plugin's DSL. It should no longer create incorrect errors and warnings, and go to declaration should be able to jump to the right methods. (This work is ongoing and in upcoming releases code completion and documentation will be improved.)
  • Layout Rendering:
    • The layout configuration menus now show you whether picking a specific device will result in jumping to a different layout. For example, if you are looking at a layout with a phone, and there is an xlarge version of the same layout, then switching to a Nexus 10 will force the editor to switch to the xlarge version of the layout. We now display this information in the menu such that you can instantly see when this happens, to help make it clear when a layout is not a match.

      Notice how for the Nexus 7 and Nexus 10 devices, it points to a different layout XML files in sw600dp which will be used on those devices rather than the current default layout file. Note also that this is not specific to devices. If you have a landscape-specific version of a layout, switching to that orientation has the same effect (and similarly for locale specific layouts) :
    • Smarter device selection. Rather than always remembering the most recently used device per layout, and always defaulting to Nexus 4, it now keeps a list of the most recently chosen devices, and always switches to the first matching device among the most recently chosen devices. This means that if you for example switch to a 7" tablet layout, it will show all subsequent layouts you open with the same device, except when that device is not a match for the layout -- for example if you open an xlarge layout, in which case it will open the most recently chosen compatible device, such as a 10" tablet layout.
    • The property sheet custom editor for colors now includes support for the ARGB format
  • Project
    • Importing modules should now work properly. You can import existing Eclipse ADT projects as well as Gradle modules into an existing Gradle project; it will copy in the sources as is done for full project import, as well as handle dependencies transitively. Import modules either from the project structure dialog or the File | Import Module action.
    • New project structure dialog implementation: Should be faster, includes Gradle sync notification, should only perform a Gradle sync at the end when necessary, and won't list invalid IntelliJ module warnings as before. This is actively being worked on and the individual editors (for flavors, build types, signing configurations etc) will be improved in upcoming builds.
  • Templates
    • New templates to create manifest, AIDL, resource XML files etc in specific source sets.
  • Attach to Process
    • The process chooser, shown when attaching to a running process, now includes device names and is "speed search" enabled (which is true for most views in IntelliJ such as the project view, where you can start typing and the list is automatically filtered)
  • Many bug fixes!
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 0.5.5 page.

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


Comments