Error:(1, 1) A problem occurred evaluating project ':app'.
> Failed to apply plugin [id 'com.android.application']
> Gradle version 2.2 is required. Current version is 3.3. If using the gradle wrapper, try editing the distributionUrl in D:\02\2.3\CheckButtonTest\gradle\wrapper\gradle-wrapper.properties to gradle-2.2-all.zip
修改build.gradle
buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:1.0.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { jcenter() } }
查看本机studio安装目录E:\Android\Android Studio\gradle\m2repository\com\android\tools\build\gradle里面的版本,
修改上面的版本为本机的版本
dependencies { classpath 'com.android.tools.build:gradle:2.3.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files重新syn成功