Recent Changes‎ > ‎

    Android Studio 0.2.4 Released

    posted Aug 14, 2013, 12:11 PM by Tor Norbye
    We've just released Android 0.2.4, with the following changes:
    • Merged with the latest IntelliJ 13 development snapshot. This included a lot of Android editor work, including:
      • Support for XML attribute documentation. Until now, only XML tags had documentation, but as of this release you can invoke F1 (View | Quick Documentation) on an XML attribute to view its SDK documentation. If you've enabled auto-popup of documentation (Options > Editor > Code Completion > Autopopup code completion) this will also show the documentation while completing.
      • Ability to jump between a layout and its associated activity.  Navigate | Related File... will now let you jump between a layout and its associated activity. You can also click on the editor margin icons which are shown for this purpose:
        (In the above you can see the XML icon next to the class declaration in the .java file, and a Class icon next to the root XML element in the layout. You can click on the icons (or use the keybinding for Navigate | Related File...) to quickly jump between the files.
      • Intention to create missing onClick handlers (as well as navigation for existing click handlers):
      • Many, many other editor fixes, such as the ability to navigate to parent styles in theme definitions, XML flag completion improvements, XML dimension unit completion, app namespace attribute handling in code completion, navigation to permissions, actions and categories in manifest files, and ability to work with SDK sources. For details, see IntelliJ YouTrack issues 57990, 91585, 102168, 102168, 102176, 102173, 92709, 102169, 102177 and 111650. And that's just the Android specific fixes; the platform itself had hundreds of CLs. Note however that we grabbed a daily snapshot, not a stable milestone.
    • Gradle integration improvements:
      • Project synchronization with Gradle, during startup, is now non-blocking.
      • Importing or creating a Gradle-based Android project does not use RMI anymore, resulting in less overhead. We are currently working with the Gradle and IntelliJ teams on making project import faster.
      • Renaming a module folder (not a module itself) updates the project’s settings.gradle file.
      • In addition to providing better error messages during project import, Android Studio also provides links to actions that can help users solve the relevant issue:
      • Updated the bundled Gradle version in Android Studio to 1.7.
    • Layout Editing
      • The chosen rendering locale is now project wide (except for layouts located in locale-specific layout folders). Switching to different locale will now apply to all layouts in the same project. As part of this work the erratic locale behavior of locales (which could open up in random locales) should be fixed.
      • Rendering targets are now also project wide, and there is a new "Automatically Pick Best" mode, on by default, which causes the rendering target to pick the best available version.
      • Some bugs related to rendering custom views should be fixed.
    • Lint
      • There is a new lint check which makes sure that methods which override View#onDetachedFromWindow also end up calling super.onDetachedFromWindow(). Failure to do this can lead to significant memory leaks.
      • There is a new lint check which looks for additional types of typos in namespace declarations.
      • Lint's API check now handles non-numeric minSdkVersion declarations in the manifest (e.g. when using code names for preview platforms.)
    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. We are not posting full installers for each weekly update. If you do not already have Android Studio, install the latest full install from . When you run that version, it will check for updates and upgrade itself via the patch mechanism.