2

I m trying to build the iosched app on ubuntu 14.04 on android studio 0.8 . After importing the setting.gradle file and following the build instruction I get an error saying

Error

    :FAILURE: Build failed with an exception.

    * What went wrong:
    Task 'assemble' not found in root project 'iosched'.

    * Try:
    Run gradle tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

The solution mentioned in this post doesn't work either.

Community
  • 1
  • 1
Vihaan Verma
  • 12,815
  • 19
  • 97
  • 126

2 Answers2

7

Try to add this: task assemble{} in your root build.gradle file.

According to this thread it helps (it helped me as well).

alariq
  • 496
  • 3
  • 10
  • 1
    just to expand it, the `task assemble {}` has to be in the build.gradle of every library, so for example in my library's build.gradle I would have the following content: `task assemble {} configurations.create("default") artifacts.add("default", file('slidingMenulibrary.aar'))` – noloman Sep 25 '14 at 09:50
1

In my case, it was because my project implemented a Module that was an android-library (deprecated) / com.android.library which used a minSdkVersion lower than my project. Be sure that your project and android-library / com.android.library have the same minSdkVersion.

Tomap
  • 638
  • 1
  • 8
  • 21