Recent Changes

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

    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.


    Android Studio 0.5.4 Released

    posted Apr 3, 2014, 9:48 AM by Tor Norbye   [ updated Apr 3, 2014, 9:55 AM ]

    We've just released Android Studio 0.5.4 with the following improvements:
    • Many bug fixes!!
    • A new Lint API check, which flags usages of attributes that are not available on all versions supported with minSdkVersion. This is just a warning rather than an error, since unlike unavailable method calls, this will not cause a crash. In some cases, such as in the following screenshot, the fact that the attribute is not used in some of the older versions is not a problem: the LinearLayout will simply not show dividers, which in this case is not a big visual problem. However, in other cases the unused attribute may be vital to the operation or look of an application, so it's important to be aware that the attribute is only functional on some of the supported versions. As always, you can suppress warnings you've manually confirmed are fine:
    • There is a new template for creating a Google Maps Activity (invoke via New > Google > Google Maps Activity) :

    NOTE: Android Studio 0.5.4 now requires Tools 22.6.2 to be installed, so open the SDK Manager to install it (Tools > Android > SDK Manager..., or use the toolbar action).

    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.4 page.

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


    Android Studio 0.5.3 Released

    posted Mar 27, 2014, 4:37 PM by Tor Norbye   [ updated Mar 27, 2014, 4:39 PM ]

    We've just released Android Studio 0.5.3, with the following improvements:
    • Updated the bundled IntelliJ IDE to 13.1.1, picking up the following bugs since our last build: 13.1.1 Release Notes
    • Gradle Support
      • You can now import modules into existing projects. (Module deletion is coming soon.)
      • When there are errors during sync/import, these are no longer only displayed in a transient popup balloon; they are written to the Messages window.

        (NOTE: Make sure you select the tab "Gradle Sync", not "Gradle Tasks". We'll make it open automatically in an upcoming build.)
      • The build variants window now shows conflicting variants.
    • Templates
      • When creating new activities you can choose which source set to write the activity into:
      • Rather than a single catch-all "Android Component" template dialog, the available templates are now offered as a nested set of menus such that you can quickly pick templates by category:
    • 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.3 page.

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

    Android Studio 0.5.2 Released

    posted Mar 20, 2014, 12:28 PM by Tor Norbye   [ updated Mar 20, 2014, 12:29 PM ]

    We've just released Android Studio 0.5.2, with the following improvements:
    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.2 page.

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

    Android Studio 0.5.1 Released

    posted Mar 7, 2014, 4:37 PM by Tor Norbye   [ updated Mar 7, 2014, 4:54 PM ]

    We've just released Android Studio 0.5.1, a quick bug-fix release for Studio 0.5.0 released yesterday. It addresses the following bugs:
    • "Unable to load class 'org.gradle.api.artifacts.result.ResolvedComponentResult'" error when loading project: Issue 65155.
    • Android Studio 0.5.0 does not work with a custom project structure (such as the one exported from Eclipse): issue 66758.
    • Android Studio 0.5.0 won't start on Mac OSX with Java 7. Issue IDEA-121383.
    • Occasional NullPointerException on startup: issue 66822.
    Thank you to everyone for filing bugs and providing feedback!

    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.1 page.

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


    Android Studio 0.5.0 Released

    posted Mar 6, 2014, 3:02 PM by Tor Norbye   [ updated Mar 6, 2014, 5:54 PM ]

    We've just released Android Studio 0.5.0, with the following improvements:
    • Support for the Android Gradle plugin 0.9. (Note that it also requires 0.9 or higher, and there are a couple of incompatible changes: See this page for how to update your project if you are affected: tools.android.com/tech-docs/new-build-system/migrating_to_09)
    • New bundled version of IntelliJ 13.1 EAP build.
      This means we're switching from the stable 13.0.x releases to 13.1 to pick up some platform support we need, but we also pick up some great new features:
    • Gradle Support
      • Offline mode for sync and build
      • Support for source folders outside the module content root
      • Support for build variants in library projects
    • Lint
      • Architectural improvements allow many cross-file checks to be run incrementally in the IDE such that they show up in the editor while editing, rather than requiring a full Analysis run to be performed. For example, while you are editing an Activity class, it will incrementally ensure that your findViewById calls perform a valid cast based on how those id's are used in the layout resource files:
        Similarly, it will check your String.format calls to ensure that the types of the parameters match the formatting conversion specifiers found in the value resource files. Other newly incremental checks include the array size check, the unknown id check, the missing orientation check, the locale check and the text field input type check.
      • The lint.xml configuration file can now filter out errors in files not just by exact relative paths but also by regular expressions such as
            <ignore regexp="res/.*layout.*/activation.xml" />
        and by glob expressions:
            <ignore path="res/**/activation.xml" />
      • flag Gradle packageSuffix usage where the suffix does not start with a dot
    • Editor support for Android transition resource files: validation, code completion, documentation
    • A large number of bug fixes!
    NOTE: If you are on Mac OSX, and you have modified your Android Studio's Info.plist file to use Java 7 instead of Java 6, the IDE may not start. See the Known Issues document for workarounds.

    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.0 page.

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


    Android Studio 0.4.6 Released

    posted Feb 19, 2014, 6:04 PM by Tor Norbye

    We've just released Android Studio 0.4.6 to the canary channel, with the following improvements:
    • Bug fixes. This is primarily a bug fix release from Android Studio 0.4.5 released five days ago. In particular, the Gradle sync editor notifications should be fixed now, as well as issues around switching language levels.
    • Source and documentation attachments. If you have plain Java library dependencies (for example on Guava or Joda-time), the Gradle sync will now automatically discover the associated source code and use those for the libraries, which makes javadoc popups work in code completion, which makes parameter documentation and suggested parameter names better, and so on. (Source attachments for AAR libraries is not yet working.)
    • Improvements to the project, activity and fragment templates:
      • The Blank Activity template no longer includes a fragment by default; there is a separate navigation type which will include it:
      • There is a new option to add Google+ login to the Login Activity template (New > Activity)

        Similarly, there is a new "+1" fragment template.] (New > Android Component)
      • Some additional clipart is included in the Asset Studio wizard

    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.4.6 page.

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

    Android Studio 0.4.5 Released

    posted Feb 14, 2014, 9:03 AM by Tor Norbye

    We've just released Android Studio 0.4.5 to the canary channel with the following improvements:
    • Many bug fixes for issues reported in 0.4.4 and earlier releases
    • Merged to the latest IntelliJ 13 EAP build 133.818
    • Improved Add Library Dependency editor
      • It now uses the IDE's Maven index to do much quicker searches
      • It includes libraries from the local Maven repositories such as the support library and Google Play Services
      • It includes many other commonly requested libraries
      • It has better query rewriting rules to make searches work better
    • When you edit your build.gradle files by hand, and the IDE's model is out of date, we now show an editor notification along with a link to immediately sync.
    • Support for custom manifest file locations
    • Log cat has a new option (on by default) which creates an application filter automatically such that only the launched application's output is shown
    • Editor inline resource folding for quantity strings (plurals)
    • Some new lint checks, and in particular one which flags uses of the assertion keyword. This does not work reliably on devices and you should use BuildConfig.DEBUG to do conditional checks instead.
    • The icon asset generator is much faster
    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.4.5 page.

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

    Eclipse ADT Bundle Updated

    posted Feb 11, 2014, 11:59 AM by Tor Norbye

    Eclipse ADT 22.6 Preview

    posted Feb 10, 2014, 2:04 PM by Tor Norbye

    We've just released a preview of the next version of the Eclipse ADT plugin. To install it, you have to enable the preview channel for Eclipse as described here:


    Improvements in this version of the ADT plugin include:
    • Support for language features like multi-catch, try-with-resources, diamond operator, etc:

      (Note that using these features requires building with the Android KitKat build tools, 19 or later. Note also that try-with-resources will require a minSdkVersion of KitKat/19; the other language features should work back to Froyo/8.)

      After installing the preview, make sure you are running Eclipse on JDK 7, and then convert your JDK setting for the project to 1.7. One simple way to do that is to just use one of the new language features, such as the diamond operator, and Eclipse will offer to convert the language level setting for you:
    • A lot of new lint checks. 
    • The New Project templates now include appcompat
    • Updated to the latest Android tools libraries, shared with Android Studio, which for example picks up the rendering sandbox (such that custom views are prevented from performing file I/O), improvements to converting resource XML string declarations to layout strings, etc.
    • Some improvements to the Gradle export wizard (though the new importer in Studio is the preferred way to migrate projects to Gradle)
    • Fixed bugs, in particular a deadlock during startup that a number of users have reported
    Please let us know if you discover any bugs in this preview! File them using the following URL:


    1-10 of 154