【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="openAndroidSdkManager">Open Android SDK Manager</a> 
 
项目里面多个compile放在一行出现如上问题,解决是每个compile占一行,不要都放在一行
原文地址:https://www.cnblogs.com/androidsuperman/p/6438525.html