Android studio - Failed to find target android-18

前端 未结 12 664
陌清茗
陌清茗 2020-11-29 00:22

I have a problem with Android Studio 0.2.3.

When I run my project the build stops and appears message that says:

Gradle: Execution failed for

12条回答
  •  粉色の甜心
    2020-11-29 01:20

    What worked for me in Android Studio (0.8.1):

    1. Right click on project name and open Module Settings
    2. Verify SDK Locations SDK
    3. Verify Gradle and Plugin Versions (Review the error message hints for the proper version to use) Gradke
    4. On the app Module set the Compile SDK Version to android-L (latest)
    5. Set the Build Tools version to largest available value (in my case 20.0.0) Build

    These changes via the UI make the equivalent changes represented in other answers but is a better way to proceed because on close, all appropriate files (current and future) will be updated automatically (which is helpful when confronted by the many places where issues can occur).

    NB: It is very important to review the Event Log and note that Android Studio provides helpful messages on alternative ways to resolve such issues.

提交回复
热议问题