我找到2個解決方案解決這個問題,但都沒有奏效。所以我決定問你。無法解決:com.android.support:appcompat-v7:15.+
我使用Debian 8傑西和Android工作室1.4
我剛剛創建新的項目,當我試圖啓動它,我得到一個錯誤: 「無法解析:com.android.support:appcompat- v7:15. +「 並給我3個選項。
1)安裝庫和同步工程
當我嘗試它,我得到了這樣的錯誤:
Loading SDK information...
Ignoring unknown package filter 'extra-android-m2repository'Warning: The package filter removed all packages. There is nothing to install.
Please consider trying to update again without a package filter.
,窗口的下:
Install failed. Please check your network connection and try again. You may continue with creating your project, but it will not complete correctly without the missing components.
2)顯示在文件
這是我的build.gradle相關性:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:15.+'
}
錯誤在這行:
compile 'com.android.support:appcompat-v7:15.+'
3)顯示在項目結構對話框
依賴的窗戶被打開,有關該行再次:
compile 'com.android.support:appcompat-v7:15.+'
嘗試的解決方案:
首先,我試着再次下載sdk版本。我刪除了Android 4.0.3並重新下載,但仍然是相同的錯誤。
之後,我試圖下載支持庫,其中推薦; topic 1,topic 2。在我下載Android支持庫之後,rev 23.0.1仍然有相同的錯誤。
之後,我試着解決我的問題,修復了錯誤的第一個選項(安裝知識庫和同步項目,並且我再次發現了一些主題,我在設置中檢查了我的HTTP代理部分,已經選擇「No proxy」
所以,我什麼都試過,我發現,但我仍然得到這個錯誤。有人能幫助我嗎?
如果你下載了23.0.1,你有沒有試過在gradle中設置這個版本? 'compile'com.android.support:appcompat-v7:23.0.1'' – AlbAtNf
哇,它真的有效! – codebender
如果我的回答對你有幫助,那麼接受它就太好了。 ;) – AlbAtNf