编译项目时出错25.0.0

我有一个运行良好的项目。 突然间面临这些问题:

Error:A problem occurred configuring project ':app'. > Could not resolve all dependencies for configuration ':app:_debugCompile'. > Could not find com.android.support:appcompat-v7:25.0.0. Searched in the following locations: file:/D:/Android Studio/Android Studio/gradle/m2repository/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.pom file:/D:/Android Studio/Android Studio/gradle/m2repository/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.jar https://jcenter.bintray.com/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.pom https://jcenter.bintray.com/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.jar https://repo1.maven.org/maven2/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.pom https://repo1.maven.org/maven2/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.jar file:/D:/NewEclips/android-sdk-windows/extras/android/m2repository/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.pom file:/D:/NewEclips/android-sdk-windows/extras/android/m2repository/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.jar file:/D:/NewEclips/android-sdk-windows/extras/google/m2repository/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.pom file:/D:/NewEclips/android-sdk-windows/extras/google/m2repository/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.jar Required by: Yokura-Seeker:app:unspecified Yokura-Seeker:app:unspecified > com.android.support:design:23.4.0 > Could not find com.android.support:cardview-v7:25.0.0. Searched in the following locations: file:/D:/Android Studio/Android Studio/gradle/m2repository/com/android/support/cardview-v7/25.0.0/cardview-v7-25.0.0.pom file:/D:/Android Studio/Android Studio/gradle/m2repository/com/android/support/cardview-v7/25.0.0/cardview-v7-25.0.0.jar https://jcenter.bintray.com/com/android/support/cardview-v7/25.0.0/cardview-v7-25.0.0.pom https://jcenter.bintray.com/com/android/support/cardview-v7/25.0.0/cardview-v7-25.0.0.jar https://repo1.maven.org/maven2/com/android/support/cardview-v7/25.0.0/cardview-v7-25.0.0.pom https://repo1.maven.org/maven2/com/android/support/cardview-v7/25.0.0/cardview-v7-25.0.0.jar file:/D:/NewEclips/android-sdk-windows/extras/android/m2repository/com/android/support/cardview-v7/25.0.0/cardview-v7-25.0.0.pom file:/D:/NewEclips/android-sdk-windows/extras/android/m2repository/com/android/support/cardview-v7/25.0.0/cardview-v7-25.0.0.jar file:/D:/NewEclips/android-sdk-windows/extras/google/m2repository/com/android/support/cardview-v7/25.0.0/cardview-v7-25.0.0.pom file:/D:/NewEclips/android-sdk-windows/extras/google/m2repository/com/android/support/cardview-v7/25.0.0/cardview-v7-25.0.0.jar Required by: Yokura-Seeker:app:unspecified > Could not find com.android.support:support-v4:25.0.0. Searched in the following locations: file:/D:/Android Studio/Android Studio/gradle/m2repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.pom file:/D:/Android Studio/Android Studio/gradle/m2repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.jar https://jcenter.bintray.com/com/android/support/support-v4/25.0.0/support-v4-25.0.0.pom https://jcenter.bintray.com/com/android/support/support-v4/25.0.0/support-v4-25.0.0.jar https://repo1.maven.org/maven2/com/android/support/support-v4/25.0.0/support-v4-25.0.0.pom https://repo1.maven.org/maven2/com/android/support/support-v4/25.0.0/support-v4-25.0.0.jar file:/D:/NewEclips/android-sdk-windows/extras/android/m2repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.pom file:/D:/NewEclips/android-sdk-windows/extras/android/m2repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.jar file:/D:/NewEclips/android-sdk-windows/extras/google/m2repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.pom file:/D:/NewEclips/android-sdk-windows/extras/google/m2repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.jar Required by: Yokura-Seeker:app:unspecified > com.android.support:design:23.4.0 Yokura-Seeker:app:unspecified > com.android.support:recyclerview-v7:23.4.0 > Could not find com.android.support:support-v4:25.0.0. Searched in the following locations: file:/D:/Android Studio/Android Studio/gradle/m2repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.pom file:/D:/Android Studio/Android Studio/gradle/m2repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.jar https://jcenter.bintray.com/com/android/support/support-v4/25.0.0/support-v4-25.0.0.pom https://jcenter.bintray.com/com/android/support/support-v4/25.0.0/support-v4-25.0.0.jar https://repo1.maven.org/maven2/com/android/support/support-v4/25.0.0/support-v4-25.0.0.pom https://repo1.maven.org/maven2/com/android/support/support-v4/25.0.0/support-v4-25.0.0.jar file:/D:/NewEclips/android-sdk-windows/extras/android/m2repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.pom file:/D:/NewEclips/android-sdk-windows/extras/android/m2repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.jar file:/D:/NewEclips/android-sdk-windows/extras/google/m2repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.pom file:/D:/NewEclips/android-sdk-windows/extras/google/m2repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.jar Required by: Yokura-Seeker:app:unspecified > com.facebook.android:facebook-android-sdk:4.17.0 > Could not find com.android.support:appcompat-v7:25.0.0. Searched in the following locations: file:/D:/Android Studio/Android Studio/gradle/m2repository/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.pom file:/D:/Android Studio/Android Studio/gradle/m2repository/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.jar https://jcenter.bintray.com/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.pom https://jcenter.bintray.com/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.jar https://repo1.maven.org/maven2/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.pom https://repo1.maven.org/maven2/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.jar file:/D:/NewEclips/android-sdk-windows/extras/android/m2repository/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.pom file:/D:/NewEclips/android-sdk-windows/extras/android/m2repository/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.jar file:/D:/NewEclips/android-sdk-windows/extras/google/m2repository/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.pom file:/D:/NewEclips/android-sdk-windows/extras/google/m2repository/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.jar Required by: Yokura-Seeker:app:unspecified > com.facebook.android:facebook-android-sdk:4.17.0 > Could not find com.android.support:cardview-v7:25.0.0. Searched in the following locations: file:/D:/Android Studio/Android Studio/gradle/m2repository/com/android/support/cardview-v7/25.0.0/cardview-v7-25.0.0.pom file:/D:/Android Studio/Android Studio/gradle/m2repository/com/android/support/cardview-v7/25.0.0/cardview-v7-25.0.0.jar https://jcenter.bintray.com/com/android/support/cardview-v7/25.0.0/cardview-v7-25.0.0.pom https://jcenter.bintray.com/com/android/support/cardview-v7/25.0.0/cardview-v7-25.0.0.jar https://repo1.maven.org/maven2/com/android/support/cardview-v7/25.0.0/cardview-v7-25.0.0.pom https://repo1.maven.org/maven2/com/android/support/cardview-v7/25.0.0/cardview-v7-25.0.0.jar file:/D:/NewEclips/android-sdk-windows/extras/android/m2repository/com/android/support/cardview-v7/25.0.0/cardview-v7-25.0.0.pom file:/D:/NewEclips/android-sdk-windows/extras/android/m2repository/com/android/support/cardview-v7/25.0.0/cardview-v7-25.0.0.jar file:/D:/NewEclips/android-sdk-windows/extras/google/m2repository/com/android/support/cardview-v7/25.0.0/cardview-v7-25.0.0.pom file:/D:/NewEclips/android-sdk-windows/extras/google/m2repository/com/android/support/cardview-v7/25.0.0/cardview-v7-25.0.0.jar Required by: Yokura-Seeker:app:unspecified > com.facebook.android:facebook-android-sdk:4.17.0 > Could not find com.android.support:customtabs:25.0.0. Searched in the following locations: file:/D:/Android Studio/Android Studio/gradle/m2repository/com/android/support/customtabs/25.0.0/customtabs-25.0.0.pom file:/D:/Android Studio/Android Studio/gradle/m2repository/com/android/support/customtabs/25.0.0/customtabs-25.0.0.jar https://jcenter.bintray.com/com/android/support/customtabs/25.0.0/customtabs-25.0.0.pom https://jcenter.bintray.com/com/android/support/customtabs/25.0.0/customtabs-25.0.0.jar https://repo1.maven.org/maven2/com/android/support/customtabs/25.0.0/customtabs-25.0.0.pom https://repo1.maven.org/maven2/com/android/support/customtabs/25.0.0/customtabs-25.0.0.jar file:/D:/NewEclips/android-sdk-windows/extras/android/m2repository/com/android/support/customtabs/25.0.0/customtabs-25.0.0.pom file:/D:/NewEclips/android-sdk-windows/extras/android/m2repository/com/android/support/customtabs/25.0.0/customtabs-25.0.0.jar file:/D:/NewEclips/android-sdk-windows/extras/google/m2repository/com/android/support/customtabs/25.0.0/customtabs-25.0.0.pom file:/D:/NewEclips/android-sdk-windows/extras/google/m2repository/com/android/support/customtabs/25.0.0/customtabs-25.0.0.jar Required by: Yokura-Seeker:app:unspecified > com.facebook.android:facebook-android-sdk:4.17.0 > Could not find com.android.support:support-v4:25.0.0. Searched in the following locations: file:/D:/Android Studio/Android Studio/gradle/m2repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.pom file:/D:/Android Studio/Android Studio/gradle/m2repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.jar https://jcenter.bintray.com/com/android/support/support-v4/25.0.0/support-v4-25.0.0.pom https://jcenter.bintray.com/com/android/support/support-v4/25.0.0/support-v4-25.0.0.jar https://repo1.maven.org/maven2/com/android/support/support-v4/25.0.0/support-v4-25.0.0.pom https://repo1.maven.org/maven2/com/android/support/support-v4/25.0.0/support-v4-25.0.0.jar file:/D:/NewEclips/android-sdk-windows/extras/android/m2repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.pom file:/D:/NewEclips/android-sdk-windows/extras/android/m2repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.jar file:/D:/NewEclips/android-sdk-windows/extras/google/m2repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.pom file:/D:/NewEclips/android-sdk-windows/extras/google/m2repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.jar Required by: Yokura-Seeker:app:unspecified > com.google.android.gms:play-services-auth:9.8.0 > com.google.android.gms:play-services-basement:9.8.0 

我也没有25.0.0在我的sdk,havnt仍然下载它,而且我的编译版本是23.0.2然后y是它寻找25.0.0?

编辑:

我正面临的确切问题是我正在使用

 compile 'com.facebook.android:facebook-android-sdk:4.+' 

在Facebook的gradle。

而在这个库里它使用的是25.0.0那么我该如何避免呢?

Related of "编译项目时出错25.0.0"

因为你没有指定Facebook SDK的确切版本: compile 'com.facebook.android:facebook-android-sdk:4.+' ,它使用任何版本(最新可能),它可能是最新的SDK(25),并需要最新的支持库版本。
所以你有2种方法来解决它:

  1. 安装缺less的库,并可能在您的项目中定位到SDK 25
  2. 使用一些确切的facebook SDK版本,而不是针对最新的Android SDK

只是取代facebook编译版本,因为在最新版本支持库更新到SDK版本25。
编译“com.facebook.android:facebook-android-sdk:4.16.1”
只要到这个链接来检查SDK的更改日志
https://developers.facebook.com/docs/android/change-log-4.x

TL; DR只需安装API 25并在SDK Manager中更新所有内容。