无法导入新的Gradle项目:找不到Build Tools修订版25.2.4

时间:2017-01-11 11:11:40

标签: eclipse libgdx

当我尝试在eclipse中导入https://github.com/TomGrill/gdx-firebase这个项目时,我收到了这个错误

"找不到com.android.support:support-v4:24.0.0。"

我已经从android sdk manager安装了最新的android sdk工具25.2.4,并在build.gradle中更新了以下更改。

compileSdkVersion 23     buildToolsVersion" 25.2.4"

defaultConfig {
    minSdkVersion 15
    targetSdkVersion 23
}

目前我收到此错误

"未能找到Build Tools修订版25.2.4"

任何人都可以告诉我,我该如何解决这个问题?

更新

我在导入该项目时仍然遇到此错误,如何解决此问题?

"找不到com.android.support:support-v4:24.0.0." 在以下位置搜索:     https://repo1.maven.org/maven2/com/android/support/support-v4/24.0.0/support-v4-24.0.0.pom     https://repo1.maven.org/maven2/com/android/support/support-v4/24.0.0/support-v4-24.0.0.aar     文件:/Users/divya/.m2/repository/com/android/support/support-v4/24.0.0/support-v4-24.0.0.pom     文件:/Users/divya/.m2/repository/com/android/support/support-v4/24.0.0/support-v4-24.0.0.aar     https://jcenter.bintray.com/com/android/support/support-v4/24.0.0/support-v4-24.0.0.pom     https://jcenter.bintray.com/com/android/support/support-v4/24.0.0/support-v4-24.0.0.aar     https://oss.sonatype.org/content/repositories/snapshots/com/android/support/support-v4/24.0.0/support-v4-24.0.0.pom     https://oss.sonatype.org/content/repositories/snapshots/com/android/support/support-v4/24.0.0/support-v4-24.0.0.aar     https://oss.sonatype.org/content/repositories/releases/com/android/support/support-v4/24.0.0/support-v4-24.0.0.pom     https://oss.sonatype.org/content/repositories/releases/com/android/support/support-v4/24.0.0/support-v4-24.0.0.aar     文件:/Applications/android/android-sdk-macosx/extras/google/m2repository/com/android/support/support-v4/24.0.0/support-v4-24.0.0.pom     文件:/Applications/android/android-sdk-macosx/extras/google/m2repository/com/android/support/support-v4/24.0.0/support-v4-24.0.0.aar 要求:     de.tomgrill.gdxfirebase.android:android:0.0.4-SNAPSHOT> com.google.firebase:firebase-database:9.8.0> com.google.android.gms:播放服务地下室:9.8.0

1 个答案:

答案 0 :(得分:1)

检查buildToolsVersion,您在Android SDK Manager中。目前最新的是25.0.2。

Android SDK Build-tools is different from 
Android SDK Tools(latest 25.2.4) and 
Android SDK Platform-tools(latest 25.0.3).

希望它可能会有所帮助

由于