2017-05-19 56 views
-2

我得到這個錯誤,當我打開我的項目,gradle項目同步errors.open消息來查看找到的錯誤,當我嘗試下載更新,我也得到這個錯誤:標籤不匹配,沒有下載; 錯誤代碼:錯誤:配置項目':app'時發生問題。錯誤:gradle項目同步完成的錯誤

Could not resolve all dependencies for configuration ':app:_debugCompile'. Could not find any version that matches com.android.support:appcompat-v7:25.+. Versions that do not match: 24.0.0-alpha2 24.0.0-alpha1 23.3.0 23.2.1 23.2.0 + 16 more Searched in the following locations: file:/C:/Program Files/Android/Android Studio2/gradle/m2repository/com/android/support/appcompat-v7/maven-metadata.xml file:/C:/Program Files/Android/Android Studio2/gradle/m2repository/com/android/support/appcompat-v7/ https://jcenter.bintray.com/com/android/support/appcompat-v7/maven-metadata.xml https://jcenter.bintray.com/com/android/support/appcompat-v7/ file:/C:/Users/User/AppData/Local/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/maven-metadata.xml file:/C:/Users/User/AppData/Local/Android/sdk/extras/google/m2repository/com/android/support/appcompat-v7/maven-metadata.xml file:/C:/Users/User/AppData/Local/Android/sdk/extras/google/m2repository/com/android/support/appcompat-v7/ Required by: JustJava2:app:unspecified

+0

把你的文件的gradle這裏 –

+0

「打開的郵件,查看發現錯誤」 - 你是什麼意思?你應該更加關心語法,因爲你的問題很難閱讀。 – Line

+0

luiz我在說的是,當我啓動我的Android工作室時出現此錯誤 – anifowoshe

回答

0

刪除「.gradle」文件,如下面的圖像路徑[Service Directory path]所示。

重新開始工作室。它會加載新需要的文件。

當您升級工作室時,通常會發生gradle sync問題,但不是在項目中工作的更新庫。

Android Gradle Sync Faile

+0

轉到您的Android項目的偏好設置以獲得上述屏幕。 – Takermania

+0

我沒有喜歡我的Andriod工作室使用Android工作室2,1.2 – anifowoshe