Android Studio 问题锦集【持续更新】

  想必,大家在使用Android Studio(后面简称AS)的过程中会遇到各种各样的问题,现在,我也来谈谈我在使用AS过程中遇到的错误。

1.Plugin with id 'com.android.application' not found.

  从同事哪儿拷贝一份代码,使用AS open之后sync一下,遇到了这个错误:Error:(1, 0) Plugin with id 'com.android.application' not found.

定位到这个错误的build.gradle,在末尾一行添加下面的代码,问题轻松解决。

buildscript {     
     repositories {          
          mavenCentral()     
     }     
    dependencies {          
          classpath 'com.android.tools.build:gradle:1.2.3'     
     }
 } 
 allprojects {     
      repositories {          
          mavenCentral()     
      } 
}
原文地址:https://www.cnblogs.com/larack/p/5045891.html