2016-01-14 38 views
0

使用最新版本的IDE。試用android 2.2 API 10和2.3。無法在Android Studio中啓動應用程序

Error:A problem occurred configuring project ':app'. 
> Could not resolve all dependencies for configuration ':app:_debugCompile'. 
    > Could not find any version that matches com.android.support:appcompat-v7:10.+. 
    Versions that do not match: 
     23.1.1 
     23.1.0 
     23.0.1 
     23.0.0 
     22.2.1 
     + 11 more 
    Searched in the following locations: 
     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: 
     MyApplication33:app:unspecified 

另外我無法關閉我的IDE時,它建立 - 它凍結。

回答

0

在您的build.gradle中將compile('com.android.support:appcompat-v7:10.+')替換爲compile('com.android.support:appcompat-v7:23.1.1')。並確保在Android SDK管理器中您的存儲庫是最新的(特別是Google Support Repository)。

+0

如何更新該 –

+0

我做了你所說的,看問題 –

+0

你可以複製你的整個'build.gradle'嗎? –

0

請通過SDK Manager安裝android支持庫。
並請確認您的依賴關係阻止build.gradle。

dependencies { 
    compile 'com.android.support:appcompat-v7:23.1.1' 
} 

enter image description here enter image description here

+0

沒有幫助,同樣的問題 –

+0

請粘貼您的依賴關係塊。 –

+0

我可以在哪裏拿? –

0

確保您正在使用您的gradle這個文件的權限compileSdkVersion。請參閱Unable to compile my android project

+0

試過編譯'com.android.support:appcompat-v7:21.0.0' –

相關問題