Android Studio 0.8 Task assemble not found in root project

9.8k Views Asked by At

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.

2

There are 2 best solutions below

0
Tomap On

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.

1
alariq On

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

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