Error:Could not find method compile() for arguments [com.android.support:appcompat-v7:18.0.+] on org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Decorated@18899229.
Please install the Android Support Repository from the Android SDK Manager. Open Android SDK Manager
但是我已经安装了支持库和ASR!由于我还收到了一个错误提示,即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未安装,但是屏幕截图证明它已经安装。那么我错在哪里了?