In Gradle Scripts, build. gradle, Plugin with id 'com. android. application' not found, gradlebuild. gradle
Build. Gradle in gradle Scripts
apply plugin: 'com.android.application'android { compileSdkVersion 25 buildToolsVersion "25.0.2" defaultConfig { applicationId "com.example.middle" minSdkVersion 15 targetSdkVersion 25 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } }}dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:25.1.0'}
Add several lines of code below
Buildscript {repositories {jcenter ()} dependencies {classpath 'com. android. tools. build: gradle: 2.2.3 '// Note: replace it with your own AS version} allprojects {repositories {jcenter ()}}