首页 > 移动平台 > 详细

android 编译错误 Error:(1, 0) Plugin with id 'com.android.application' not found.

时间:2017-06-19 16:42:20      阅读:307      评论:0      收藏:0      [点我收藏+]

在导入一个项目时,由于它本身的gradle版本比较高,你试用比较旧版本的gradle时就报出Plugin with id ‘com.android.application‘ not found.的错误

如果出现如上错误,只需要在build.gradle中添加下面代码即可:

 (直接加在 android{ } 的外面)

buildscript {
    repositories {
        jcenter() // or mavenCentral()
}

    dependencies {
        classpath com.android.tools.build:gradle:1.5.0
}
}

allprojects {
    repositories {
        jcenter()
    }
}

参考:http://blog.csdn.net/zhengdan66/article/details/50418747#comments

android 编译错误 Error:(1, 0) Plugin with id 'com.android.application' not found.

原文:http://www.cnblogs.com/Sharley/p/7049357.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!