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

前端 未结 20 1568
失恋的感觉
失恋的感觉 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:34

    Apparently this error has multiple causes. Here's what fixed it for me.

    I was running the build command like this:

    ./gradlew :testapp: build
    

    Running it without the space fixed the issue:

    ./gradlew :testapp:build
    

提交回复
热议问题