posted Jan 8, 2014, 12:31 PM by Tor Norbye
We've just released Android Studio 0.4.1, with the following improvements:
- Updated to the latest Intellij 13.0.2 release build, 133.471. This means we picked up 8 new EAP builds relative to Android Studio 0.4.0:
- Gradle IDE integration
- New option for setting command line flags passed to Gradle, which for example allows you to pass any Gradle command line flag to the build, such as
- The project structure dialog now handles build.gradle file editing better, such as preserving comments and code blocks inside lists that it is editing
- For newly created projects, the plugin and repositories are defined in a single place, in the top level build.gradle, rather than in each module’s build.gradle file.
- Gradle 1.10 has been released, but Android Gradle plugin 0.7.3 (which Studio 0.4.1 is using) does not work properly with Gradle 1.10, and the error message was very confusing (because the plugin crashes before it gets to the version check). In 0.4.1 we detect the mismatched version earlier and give a sensible message. We are working on an updated Android Gradle plugin which (among other feature work) will work with Gradle 1.10.
- Streamlined import. If a project contains a gradle wrapper, or if Studio knows where Gradle is installed, the project is imported directly without asking for more information.
- Many fixes around Gradle sync error handling and notification. We now give better feedback during a sync (with editor notifications), and especially after a sync if the sync failed, since in that case a lot of functionality will not work right. There are more diagnostics and suggestions which should help pinpoint and address the problems.
- Eclipse project import
- Supports importing instrumentation tests. When importing an ADT project, it looks at the sibling directories and the child directories of the imported project, and if it finds an instrumentation ADT project, the sources are merged into the Gradle instrumentation test source set of the project.
- Supports importing NDK projects. If the imported project contains NDK sources, these are imported into the jni/ source set of the project, the module name is inferred from the Makefile and stored in the Gradle file, and the ndk.dir property is defined in local.properties.
- Additional import diagnostics, warning about SDK installs missing needed Maven repositories, using obsolete build tools, etc.
- The import now handles more complex dependencies, using Eclipse linked resources, path variables, and so on. If you point to an Eclipse workspace (or if the project is inside a workspace, the import will find it automatically), it can use the workspace metadata to resolve path expressions; otherwise, you can provide manual mappings for these as part of the import wizard:
- New Heap Dump action, which lets you select a process, generate a heap dump and save it as an HPROF file for use with a memory profiler.
- New manifest warning which flags attributes in a manifest file which are ignored and can therefore be misleading:
- Fixed some false positives in checks when used in Gradle projects
- Layout Rendering
- If you have the latest API 19 SDK installed, Nexus 5 is available from the device list
- Bug fixes
- A lot of bug fixes, including but not limited to issues 63534, 63624, 12222499, 63623, 63881, 63622, 58302, 63596, 63926, 64358, 63928, 64014, 63997.
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 run into problems, be sure to check the Known Issues page which we'll update as necessary.