【发布时间】:2017-07-27 02:48:34
【问题描述】:
在使用 Android Studio 3.0 (canay7) 时,我的电脑崩溃了。我重新启动了 Windows 和 Android Studio。
我的项目 Gradle 同步失败,现在显示消息:
“应为 BEGIN_ARRAY,但在第 1 行第 1 列 p 为 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 {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
【问题讨论】:
-
这听起来像一个错误。提交报告!
-
我自己也刚遇到这个错误。这是一个错误还是我可以使用的解决方法?
-
你解决问题了吗?
标签: android android-studio android-gradle-plugin