Social Media

Android Studio 1.1 Preview 2 Released

We've just released Android Studio 1.1 Preview 2 to the canary and dev channels. As mentioned last week for preview 1, the focus for version 1.1 isbug fixes; we are working in parallel on version 1.2 where we are migrating to the IntelliJ 14 codebase, among other feature work.

In this build, there are several new lint checks:

Check for suspicious language/region combinations (where you are defining a translation for a language and specific locale, where the combination of language and region is unusual and it's possible that you've used the wrong code.)

Checks that the tag passed to a Log.severity(tag, ...) call and its surrounding Log.isLoggable(tag) calls refer to the same tag. Similarly, it also checks that the logging level passed in to isLoggable matches the type of logging call, e.g. if if you check isLoggable(..., Log.DEBUG) you should log with Log.d, not Log.v or Log.i.

Checks that the tag passed to the logging calls, if its value can be resolved, is at most 23 characters long (as required by the Logging API.)

Checks that calls to info, verbose and debug logging calls are surrounded by a conditional (e.g. isLoggable or BuildInfo.DEBUG) but only if that logging call "performs work" (e.g. concatenates non constant strings or performs methods calls etc). This check is off by default.

Check for using drawables instead of mipmaps for the launcher icon, where the application is also filtering the set of densities packaged into the APK. There is also a quickfix in the IDE for migrating an icon from a @drawable to a @mipmap.

In addition, the default launcher icons have been updated to a Material Design look, and it now also includes an xxxhdpi density icon.

You can 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: 1.1preview2 is currently only available in the canary and dev channels, and Android Studio will by default look in the Beta or Stable channels, 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