Android studio - Failed to find target android-18

前端 未结 12 668
陌清茗
陌清茗 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:18

    You can solve the problem changing the compileSdkVersion in the Grandle.build file from 18 to wtever SDK is installed ..... BUTTTTT

    1. If you are trying to goin back in SDK versions like 18 to 17 ,You can not use the feature available in 18 or 18+

    2. If you are migrating your project (Eclipse to Android Studio ) Then off course you Don't have build.gradle file in your Existed Eclipse project

    So, the only solution is to ensure the SDK version installed or not, you are targeting to , If not then install.

    Error:Cause: failed to find target with hash string 'android-19' in: C:\Users\setia\AppData\Local\Android\sdk

提交回复
热议问题