dependencies { classpath 'com.android.tools.build:gradle:0.5.+' .... additional classpath's }
due to Android Studio 0.2 supporting gradle 0.5.0 or latter, and the previous version of Android Studio using gradle 0.4. I was confronted with this error:
Gradle: FAILURE: Could not determine which tasks to execute. * What went wrong: Task 'assemble' not found in root project 'XXXXXXXXProject'. * Try: Run gradle tasks to get a list of available tasks.
This is due to the earlier Android Studio creating a misconfigured the IDEA file (e.g. the .iml file) where an extra <component name="FacetManager"> XML element is added. The solution is to edit the .iml file and remove the element.
No comments:
Post a Comment