Android Studio build fails with “Task '' not found in root project 'MyProject'.”

前端 未结 20 1528
失恋的感觉
失恋的感觉 2020-11-30 02:31

I get this error when trying to build my project after changing laptop and updating to Android Studio version 0.8.2.

FAILURE: Build failed with an exc

20条回答
  •  渐次进展
    2020-11-30 03:23

    Apparently this issue caused by Android Studio on the various situation but the reason is build error When importing an existing project into android studio.

    In my case, I've imported my exist project where I was supposed to install few build tools then finally build configuration was done with error. In this case, just do the following things

    1. Close the current project
    2. File>New>Import Project (Don't use the open recent project)

      Note: I'm sure this kind of error is not on source code when this happened on Import project.

提交回复
热议问题