小编Zio*_*n Q的帖子

Gradle 同步失败:预期为 BEGIN_ARRAY,但在第 1 行第 1 列处为 STRING

在使用 Android Studio 3.0 (canay7) 时,我的电脑崩溃了。我重新启动了 Windows 和 Android Studio。

我的项目 Gradle 同步失败,现在显示消息:

“预期为 BEGIN_ARRAY,但在第 1 行第 1 列处为 STRING”。

关键是我从未更改过我的 Gradle 文件。

我已经使缓存无效并重新启动了 Android Studio,但它没有用。我不知道是什么导致了这个问题。谁能帮我?

这是我的 Gradle 文件:

    // 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:3.0.0-alpha7'
//        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
    }
}

allprojects {
    repositories { …
Run Code Online (Sandbox Code Playgroud)

android android-studio android-gradle-plugin

3
推荐指数
1
解决办法
1955
查看次数