在新建项目后,出现了Error:(1, 0) Plugin with id 'com.android.application' not found,然后找原因是因为gradle的问题,解决办法:
在工程目录的build.gradle中添加代码
// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:1.3.0' } } allprojects { repositories { mavenCentral() } }注意 classpath的版本要和自己的版本相对应。
然后重新编译就可以了。
---------------------------------------------------END
本文介绍了解决在新建Android项目时遇到的Error:(1,0) Plugin with id 'com.android.application' not found错误的方法。通过更新build.gradle文件中的Gradle插件版本,可以有效解决该问题。
2239

被折叠的 条评论
为什么被折叠?



