返回信息流在 org.gradle.tooling.GradleConnectionException: Could not create an instance of Tooling API implementation using the specified Gradle installation 'C:\Users\huangqian\.gradle\wrapper\dists\gradle-2.2.1-all\6dibv5rcnnqlfbq9klf8imrndn\gradle-2.2.1'
这是build.gradle文件内容
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "22.0.0"
defaultConfig {
applicationId 'com.ylsg365.pai'
minSdkVersion 10
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
}
//加载so文件
task copyNativeLibs(type: Copy) {
from fileTree(dir: 'libs', include: '**/*.so') into 'build/native-libs'
}
tasks.withType(JavaCompile) { compileTask -> compileTask.dependsOn copyNativeLibs }
clean.dependsOn 'cleanCopyNativeLibs'
tasks.withType(com.android.build.gradle.tasks.PackageApplication) { pkgTask ->
pkgTask.jniFolders = new HashSet()
pkgTask.jniFolders.add(new File(projectDir, 'build/native-libs'))
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:22.0.0'
compile 'com.android.support:support-v4:22.0.0'
compile 'com.android.support:recyclerview-v7:22.0.0'
compile files('libs/eventbus-2.4.0.jar')
compile 'com.github.ksoichiro:android-observablescrollview:1.5.0'
compile files('libs/gson-2.3.1.jar')
compile files('libs/universal-image-loader-1.9.3.jar')
compile files('libs/commons-lang3-3.3.2.jar')
compile project(':volley')
compile files('libs/httpclient-4.3.3.jar')
compile files('libs/httpcore-4.3.2.jar')
compile files('libs/httpmime-4.3.3.jar')
compile project(':pulltorefresh')
compile files('libs/libammsdk.jar')
compile files('libs/xUtils-2.6.14.jar')
compile project(':SuperRecyclerView')
compile files('libs/weibosdkcore.jar')
}
附件中有我的SDK版本信息
请问是SDK中某些东西没更新完整么?有遇到过类似问题的大神求支招!!
这是一条镜像帖。来源:北邮人论坛 / mobile-terminal-at / #22052同步于 2015/5/12
该镜像源已超过 30 天没有更新,可能在源站已被删除。
MobileTerminalAT机器人发帖
android studio 真机运行报错,求解答
Jjoe
2015/5/12镜像同步4 回复
订阅后,新回复会通过你的通知中心匿名送达。
4 条回复
嗯 我也觉得是另一个build.gradle里面版本的问题。。
【 在 Jjoe 的大作中提到: 】
在 org.gradle.tooling.Gradle...