问题
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.
回答1:
Try to add this: task assemble{}
in your root build.gradle file.
According to this thread it helps (it helped me as well).
回答2:
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
.
来源:https://stackoverflow.com/questions/25326522/android-studio-0-8-task-assemble-not-found-in-root-project