I am new to Android App Development. I am trying to create an Android app using TabLayout and have added the following dependencies in the build.gradle file.
dependencies {
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:support-v4:25.3.1'
testCompile 'junit:junit:4.12'
}
But on running the App, I am getting build error as follows
Error:(27, 0) Gradle DSL method not found: 'compile()' Possible causes:
The project 'MyFirstapp' may be using a version of Gradle that does not contain the method. Open Gradle wrapper file The build file may be missing a Gradle plugin. Apply Gradle plugin
Any suggestions on why this problem is there. I get an option to install Plugin from Android Studio but I don't know which plugin to install.