Error:Error:(2, 0) Plugin with id 'android-apt' not found.
原因:導入Moudle時而未導入Project中的相關配置
解決 :在project的gradle文件中配置如下:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.2'
//添加這行代碼
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
classpath 'org.greenrobot:greendao-gradle-plugin:3.2.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
拓展:其他not found相關問題,度可以用這方法解決。
---------------------
作者:Aaaaabbx
來源:CSDN
原文:https://blog.csdn.net/qq_35936174/article/details/71078138
版權聲明:本文為博主原創文章,轉載請附上博文鏈接!
