AndroidStudioアップデート0.2.0 で「FAILURE: Could not determine which tasks to execute.」

 

アップデートです、AndroidStudio。

アップデート後、ビルドしてみると残念。

Android_Studio__I_O_Preview__AI-130.737825-2


Gradle: 
FAILURE: Could not determine which tasks to execute.
* What went wrong:
Task 'assemble' not found in root project 'MyProject'.
* Try:
Run gradle tasks to get a list of available tasks.

このへんについては、リリースノートなどに書いてあります。

module 内の build.gradle の以下を変更。

dependencies {
    classpath 'com.android.tools.build:gradle:0.5.+'
}

project トップの build.gradle に以下を追記。

// Top-level build file where you can add configuration options common to all sub-projects/modules.
task assemble { }

これでいけました。

Issue 57229 - android - Task 'assemble' not found in root project - Android - An Open Handset Alliance Project - Google Project Hosting Issue 57229 - android - Task 'assemble' not found in root project - Android - An Open Handset Alliance Project - Google Project Hosting

Known Issues - Android Tools Project Site Known Issues - Android Tools Project Site

What's new in 0.5.0
・IDE Model is changed and is not compatible with earlier version! Version 0.2.0+ of Studio is required.
Fixed IDE model to contain the output file even if it's customized through the DSL. Also fixed the DSL to get/set the output file on the variant object so that it's not necessary to use variant.packageApplication or variant.zipAlign
・Fixed dependency resolution so that we resolved the combination of (default config, build types, flavor(s)) together instead of separately.
・Fixed dependency for tests of library project to properly include all the dependencies of the library itself.
・Fixed case where two dependencies have the same leaf name.
・Fixed issue where Proguard rules file cannot be applied on flavors.

New Build System - Android Tools Project Site New Build System - Android Tools Project Site


関連ワード:  AndroidStudioGradleツールニュース開発