在新建项目后,出现了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