Plugin with id ‘com.android.application‘ not found.

  • 从科大讯飞官网下载下来的demo编译报错

Plugin with id ‘com.android.application‘ not found._第1张图片

  • 解决方案:
    将下列代码粘贴到报错项目的build.gradle中,再次编译即可。
buildscript {

    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.0'
    }
}

allprojects {
    repositories {
        google()
        jcenter()
    }
}

你可能感兴趣的:(android,android,gradle,android,studio)