Android Studio 0.8 Task assemble not found in root project

时光毁灭记忆、已成空白 提交于 2019-12-24 05:09:10

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!