Error:(16, 0) Gradle DSL method not found: 'compile()'
Possible causes:<ul><li>The project 'testAPP' may be using a version of the Android Gradle plug-in that does not contain the method (e.g. 'testCompile' was added in 1.1.0).
<a href="fixGradleElements">Upgrade plugin to version 2.3.0 and sync project</a></li><li>The project '表情猫' may be using a version of Gradle that does not contain the method.
<a href="open.wrapper.file">Open Gradle wrapper file</a></li><li>The build file may be missing a Gradle plugin.
<a href="apply.gradle.plugin">Apply Gradle plugin</a></li>
解决办法在build.gradle (Module: app)
添加
compile 'com.github.hackware1993:MagicIndicator:1.5.0'
After adding those lines to:
而不是
build.gradle (Project: app)```
![Paste_Image.png](http://upload-images.jianshu.io/upload_images/2704327-120b8d7224460f87.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![Paste_Image.png](http://upload-images.jianshu.io/upload_images/2704327-a663ea9fb02c16ce.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)