解决android studio错误 --> Error:(1, 0) Plugin with id 'com.android.application' not found
2017-09-15 17:43
841 查看
Error:(1, 0) Plugin with id 'com.android.application' not found.Open File
这个错误是build.gradle造成的,我们打开文件
打开报错的项目的build.gradle,看看有没有buildscript{}(应该是没有的,因为就是没有这个东西才报错的
buildscript {
repositories {
mavenCentral() // or jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0' //last version Jan 2016
}
}
把这个粘贴进去,点
同步,错误应该消失了,
效果如图:
就是这样子了,这项目有点不一样,我是import进去的,在gradle配置里面的,一般情况下是没有红色框框上面的配置的。
问题顺利解决了。
问题归根揭底是
你可以看看报错前和解决后的这个视图有什么变化,嘻嘻
打开上面的project structure,请点
-------------------------------------------------------------------------------
我有一个问题就是junit报错,找不到文件
这个错误是build.gradle造成的,我们打开文件
打开报错的项目的build.gradle,看看有没有buildscript{}(应该是没有的,因为就是没有这个东西才报错的
buildscript {
repositories {
mavenCentral() // or jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0' //last version Jan 2016
}
}
把这个粘贴进去,点
同步,错误应该消失了,
效果如图:
就是这样子了,这项目有点不一样,我是import进去的,在gradle配置里面的,一般情况下是没有红色框框上面的配置的。
问题顺利解决了。
问题归根揭底是
你可以看看报错前和解决后的这个视图有什么变化,嘻嘻
打开上面的project structure,请点
-------------------------------------------------------------------------------
我有一个问题就是junit报错,找不到文件
testCompile 'junit:junit:4.12'
知道答案的告诉我一声,我现在是去掉了这一句,因为是测试相关的我就没去纠结,我自己建的项目没有报错,就是这个导入项目的project报错而已
相关文章推荐
- 错误: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 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 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. 解决
- 解决办法: Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' 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. 解决
- Error:(1, 0) Plugin with id 'com.android.application' not found. <a href="openFile:F:\AndroidCode\Ji
- 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
- (Plugin with id com.android.application not found)问题解决
- plugin with id com.android.application not found 错误
- android 错误 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
- android 编译错误 Error:(1, 0) Plugin with id 'com.android.application' not found. 解决
- 关于导入moudle遇到的错误Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found解决办法