Android studio 报错 Plugin with id 'com.android.application' not found

When I updated my Android Studio to the latest, I got the same problem. Here is how I solved it.

First: Add the following code to the top of your build.gradle:

buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:1.1.0' } } allprojects { repositories { jcenter() } }

Second: Find the gradle-wrapper.properties. Change the last sentence to this:

distributionUrl=http\://services.gradle.org/distributions/gradle-2.2.1-all.zip

Hope this works for you.

你可能感兴趣的:(java,android,AS)