[英]Could not find method Compile() for arguments [com.android.support:support
Error:Could not find method compile() for arguments [com.android.support:support-v4:25.0.3] on DefaultExternalModuleDependency{group='com.android.support', name='appcompat-v7', version='25.0.3', configuration='default'}. 错误:无法在DefaultExternalModuleDependency {group ='com.android.support',name ='appcompat-v7',version ='上找到参数[com.android.support:support-v4:25.0.3]的方法compile() 25.0.3',configuration ='default'}。
Please install the Android Support Repository from the Android SDK Manager. 请从Android SDK Manager安装Android支持存储库。 Open Android SDK Manager 打开Android SDK Manager
I have no idea on how this could be occuring, i've checked over the files multiple timesbut yet, i cant find what is going wrong, if you have the slightest idea of what is going wrong, please let me know. 我不知道这是怎么发生的,我已多次查看文件但是,我无法找到出错的地方,如果你对出了什么问题有任何想法,请告诉我。
The first issue 第一个问题
Error:Could not find method compile() for arguments [com.android.support:support-v4:25.0.3] on DefaultExternalModuleDependency{group='com.android.support', name='appcompat-v7', version='25.0.3', configuration='default'}. 错误:无法在DefaultExternalModuleDependency {group ='com.android.support',name ='appcompat-v7',version ='上找到参数[com.android.support:support-v4:25.0.3]的方法compile() 25.0.3',configuration ='default'}。
happens because your are specifying the dependencies
block in the top-level file at least for the android project. 之所以发生是因为你在顶层文件中指定了dependencies
块,至少对于android项目是这样。
The second issue 第二个问题
Error:Execution failed for task ':android:processDebugManifest'. 错误:任务':android:processDebugManifest'执行失败。 > Manifest merger failed : uses-sdk:minSdkVersion 9 cannot be smaller than version 15 declared in library [Ballin:BaseGameUtils:1.0] >清单合并失败:uses-sdk:minSdkVersion 9不能小于库中声明的版本15 [Ballin:BaseGameUtils:1.0]
happens because in your android module you are using 因为在你正在使用的android模块中发生了
defaultConfig {
minSdkVersion 9
} }
but you are adding a dependency (BaseGameUtils) which has minSdk=15. 但是你要添加一个具有minSdk = 15的依赖项(BaseGameUtils)。
You have to change the minSdkVersion
in your android project to 15. 你必须minSdkVersion
android项目中的minSdkVersion
更改为15。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.