Error:(1, 0) Plugin with id 'android' not found.
16lz
2021-01-26
Android Studio编译时提示错误:Error:(1, 0) Plugin with id 'android' not found,是因为gradle文件中没有定义android tools的版本造成,在项目的build.gradle文件中添加定义版本的语句:
classpath 'com.android.tools.build:gradle:1.3.0'
这个问题就解决了。注意build.gradle文件是项目下的
最后这个build.gradle文件的完整内容如下:
// Top-level build file where you can add configuration options common to all sub-projects/modules.buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:1.3.0' }}allprojects { repositories { jcenter() }}
更多相关文章
- Android(安卓)自定义camera
- GraphWidget插件—简介
- [Accessibility] Missing contentDescription attribute on imag
- Android日志文件的读写工具类
- Android(安卓)使用Notification自定义通知栏显示
- Android(安卓)DownloadProvider分析
- ExpandableListView的使用
- SONY 系列手机 Android(安卓)5.1 系统 Root 方法
- Mac系统下利用ADB命令连接android手机并进行文件操作