简体   繁体   English

Gradle项目同步失败的Android Studio

[英]Gradle project sync failed android studio

I downloaded Arc library form github and imported it as module then I got this error. 我从github下载了Arc库,并将其作为模块导入,然后出现此错误。

Error:Cause: failed to find target with hash string 'android-4' in: C:\\Users\\shahek\\AppData\\Local\\Android\\sdk Open Android SDK Manager I also installed Api 15. 错误:原因:无法在以下目录中找到带有哈希字符串'android-4'的目标:C:\\ Users \\ shahek \\ AppData \\ Local \\ Android \\ sdk打开Android SDK Manager,我还安装了Api 15。

This is my build.gradle setting. 这是我的build.gradle设置。

android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
    applicationId "com.example.shahek.myapplication"
    minSdkVersion 18
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
}

You must install version 23 and all this things must be solved. 您必须安装版本23,并且必须解决所有这些问题。 If it don't help you, try to download this library from github and add into project and modify min sdk version in gradle/manifest to yours 18. 如果它对您没有帮助,请尝试从github下载此库,然后将其添加到项目中,并将gradle / manifest中的最低SDK版本修改为您的18。

Good luck. 祝好运。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM