Bootstrap

【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占一行,不要都放在一行,
备注:显示已经换行,还无效的,需复制此报错的compile,在正确的 compile后面打换行符,然后再粘贴

;