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

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

    Download system image(of targeted android level of your project) from sdk manager for the project you have imported.

    This error comes when you do not have target sdk of your android project installed in sdk folder

    for eg. Your imported project's target sdk level may be android-19 and on sdk folder->system-images you may have android-21 installed. so you have to download android-19 system image and other files from sdk manager or you can copy paste it if you have the system image.

    0 讨论(0)
  • 2020-11-30 03:36

    In my case, setting the 'Gradle version' same as the 'Android Plugin version' under File->Project Structure->Project fixed the issue for me.

    0 讨论(0)
提交回复
热议问题