[英]Android studio - gradle - failed to find target with hash string 'Google Inc.:Glass Development Kit Preview:19'
Failed to sync Gradle Project ‚HelloGlass' 无法同步Gradle项目“ HelloGlass”
Error: Cause: failed to find target with hash string 'Google Inc.: Glass Development Kit Preview:19' in D:\\Project\\Android-SDK 错误:原因:无法在D:\\ Project \\ Android-SDK中使用哈希字符串'Google Inc .: Glass Development Kit Preview:19'找到目标
Strangly, this error didn't appear 3 days ago when I last built the project. 遗憾的是,我上次构建项目3天前没有出现此错误。 I haven't changed anything or used Android Studio since then. 从那时起,我什么都没改变或使用Android Studio。
These are the steps that I've tried to solve the issue: 这些是我尝试解决此问题的步骤:
This is the relevant part of my gradle file: 这是我的gradle文件的相关部分:
android {
compileSdkVersion "Google Inc.:Glass Development Kit Preview:19"
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.helloglass"
minSdkVersion 19
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
...
And my top-level gradle file: 还有我的顶级gradle文件:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.0.0-alpha6'
}
}
I don't know what else to do. 我不知道该怎么办 Any help is greatly appreciated! 任何帮助是极大的赞赏!
我还没有找到问题的原因,但是在重新安装Android Studio和Android SDK之后,我终于可以构建项目了。
Replace 更换
compileSdkVersion "Google Inc.:Glass Development Kit Preview:19"
with 同
compileSdkVersion 23
then rebuild the project, hope it will work 然后重建项目,希望它能工作
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.