前幾天把本地module,放到jcenter 上面作為遠程應用報了這個錯。
Error:Could not find method compile() for arguments [com.android.support:cardview-v7:25.3.0] on DefaultExternalModuleDependency{group='com.android.support', name='support-vector-drawable', version='25.3.0', configuration='default'} of type org.gradle.api.internal.artifacts.dependencies.DefaultExternalModuleDependency.Please install the Android Support Repository from the Android SDK Manager.Open Android SDK Manager
找不到compile() 其中的方法。
其實這個問題很簡單 ,最后發現是android 自動給build.gradle ? ?文件配置,給換行了。。。。。 ?
加回車 完事 解決問題
跟大家分享一下。。