首页 > 代码库 > 【bug】Could not find method compile() 解决

【bug】Could not find method compile() 解决

 集成第三方库出现
Error:Could not find method compile() for arguments [com.android.support:design:23.4.0] on DefaultExternalModuleDependency{group=‘com.android.support‘, name=‘appcompat-v7‘, version=‘23.4.0‘, configuration=‘default‘} of type org.gradle.api.internal.artifacts.dependencies.DefaultExternalModuleDependency.

Please install the Android Support Repository from the Android SDK Manager.
<a href="http://www.mamicode.com/openAndroidSdkManager">Open Android SDK Manager</a> 

 

 
项目里面多个compile放在一行出现如上问题,解决是每个compile占一行,不要都放在一行

【bug】Could not find method compile() 解决