Android studio 23.0.0 rc3错误|尝试了所有不起作用的解决方案

Android studio 23.0.0 rc3错误|尝试了所有不起作用的解决方案,android,android-studio,gradle,android-gradle-plugin,build.gradle,Android,Android Studio,Gradle,Android Gradle Plugin,Build.gradle,我已经搜索并尝试了所有的stackover flow方法,但都没有帮助 我明白了 // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.t

我已经搜索并尝试了所有的stackover flow方法,但都没有帮助

我明白了

// Top-level build file where you can add configuration options common to all sub-projects/modules.

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

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
    }
}
当我尝试添加(22 lolipop)和23.0.1时,它显示打开gradle包装文件&应用插件没有任何效果

Error:(19, 0) Gradle DSL method not found: 'android()'
Possible causes:<ul><li>The project 'booook' may be using a version of Gradle that does not contain the method.
<a href="open.wrapper.file">Open Gradle wrapper file</a></li><li>The build file may be missing a Gradle plugin.
<a href="apply.gradle.plugin">Apply Gradle plugin</a></li>

这就是我在进行更改后在最终结果中得到的结果
http://s9.postimg.org/fzg0sie8v/image.png

http://s30.postimg.org/6eepfqxtd/image.png

http://s11.postimg.org/b6l12ec8z/image.png


http://s11.postimg.org/b6l12ec8z/image.png

您位于顶级生成文件(文件的第一行)

您应该在子项目(通常是app/build.gradle)中添加此新内容

从顶级
build.gradle中删除这些行

android {
    compileSdkVersion 22
    buildToolsVersion '23.0.1'
}
dependencies {
}
这是我的原因

错误:(19,0)找不到Gradle DSL方法:“android()”

android {
    compileSdkVersion 22
    buildToolsVersion '23.0.1'
}
dependencies {
}