使用Android的工作室,我也跟着在https://developer.android.com/tools/support-library/setup.html作爲acurately盡我所能的步驟,但它告訴我下面的錯誤:爲什麼Android支持庫不能在我的項目中使用?
Error:Could not find method compile() for arguments [com.android.support:appcompat-v7:18.0.+] on org.gradle.api.interna[email protected]18899229.
Please install the Android Support Repository from the Android SDK Manager. Open Android SDK Manager
但我已經安裝了支持庫和庫!因爲我也得到了一個錯誤說compile
在dependencies
塊不屬於,所以我把它改成classpath
,並得到了以下,類似的錯誤:
Error:Could not find any version that matches com.android.support:appcompat-v7:18.0.+. Required by: :ExpenseTracker:unspecified
Please install the Android Support Repository from the Android SDK Manager. Open Android SDK Manager
正如你可以在這裏看到,它仍然認爲ASR沒有安裝,但截圖證明,它是。那麼我在這裏做錯了什麼?
嘗試更改v7:18.0。+到v7:20. + – Simas
@ user3249477我做到了。不幸的是,沒有解決它:c – Supuhstar