Error:(1, 0) Plugin with id 'com.android.application' not found
来源:互联网 发布:国内铸铁锅与日本知乎 编辑:程序博客网 时间:2024/06/07 22:35
从github上下载了一个工程,导入Android studio的时候就报了Error:(1, 0) Plugin with id 'com.android.application' not found这个错。
在stackoverflow这个网站上找到了解决的方法。如下方截图所示。
网址:https://stackoverflow.com/questions/24795079/error1-0-plugin-with-id-com-android-application-not-found
我的这个报错的工程比较奇怪,里面只有一个build.gradle。
于是我就在这个build.gradle中添加上方截图的代码。
buildscript{ repositories{ jcenter() } dependencies{ classpath "com.android.tools.build:gradle:2.3.3" }}
添加的代码就在红框里。
但是点击一下gradle按钮后,又出现了其他的错误。
于是又百度了一下Failed to resolve: junit:junit:4.12。
又在stackoverflow上找到了答案。网址如下:https://stackoverflow.com/questions/32519219/error23-17-failed-to-resolve-junitjunit4-12
我添加的位置如下:
上面截图中红框的代码如下:
repositories { maven { url 'http://repo1.maven.org/maven2' } }
再gradle一下,bug就没了。就是这么简单。
如果本文对你有所帮助,麻烦在下方点个赞。谢谢。
阅读全文
0 0
- 导入android studio 项目错误:Error:(1, 0) Plugin with id 'com.android.application' not found
- android 编译错误 Error:(1, 0) Plugin with id 'com.android.application' not found. 解决
- 解决android studio错误 --> Error:(1, 0) Plugin with id 'com.android.application' not found
- android 编译错误 Error:(1, 0) Plugin with id 'com.android.application' not found. 解决
- 解决android studio错误 --> Error:(1, 0) Plugin with id 'com.android.application' not found
- Android studio Error:(1, 0) Plugin with id 'com.Android.application' not found.Open File
- Android Studio报错Error:(1, 0) Plugin with id 'com.android.application' not found
- 导入android studio 项目错误:Error:(1, 0) Plugin with id 'com.android.application' not found
- android 编译错误 Error:(1, 0) Plugin with id 'com.android.application' not found. 解决
- 错误:android studio ---> Error:(1, 0) Plugin with id 'com.android.application' not found.
- android 编译错误 Error:(1, 0) Plugin with id 'com.android.application' not found. 解决
- 解决android studio错误 --> Error:(1, 0) Plugin with id 'com.android.application' not found
- 解决android studio错误 --> Error:(1, 0) Plugin with id 'com.android.application' not found
- Error:(1, 0) Plugin with id 'com.android.application' not found
- Error:(1, 0) Plugin with id 'com.android.application' not found.
- Error:(1, 0) Plugin with id 'com.android.application' not found
- Error:(1, 0) Plugin with id 'com.android.application' not found的解决方法
- Error:(1, 0) Plugin with id 'com.android.application' not found. 解决方案
- 系统学习C++(1)
- codevs 1002 搭桥 【最小生成树】解题报告
- linux上面运行python抓取数据时由于chromedriver和chromium没有关闭导致的内存泄漏的问题解决方案
- 黑色星期五
- Ubuntu16.04配置anaconda环境
- Error:(1, 0) Plugin with id 'com.android.application' not found
- PAT 乙级 1021
- layUi框架入门篇(一)
- 代码片段如何作为宏定义函数参数
- caffe + win10基于CaffeNet网络框架训练自己的图片进行分类(实践篇)
- Terrible Sets
- ubuntu 开机出现 grub rescue >
- 【C程序】使用bit位来做计数标志的程序
- 精品旅游项目第2天