【发布时间】:2016-02-12 13:45:43
【问题描述】:
我关注this SO answer 来修复,当 Android Studio 给我错误 Gradle plugin is old ,现在有一个小问题现在我收到错误 SAXParseException 这里是错误信息。
Error:org.xml.sax.SAXParseException; lineNumber: 0; columnNumber: 0; cvc-pattern-valid: Value 'build-tools;23.0.0 rc3' is not facet-valid with respect to pattern '[a-zA-Z0-9_\-;.]+' for type 'segmentListType'.
这是我的build.gradle(Module:app):
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.jutt.fyp.isec"
minSdkVersion 14
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:22.2.1'
}
build.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:2.0.0-beta4'
// 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
}
我尝试关注SO answer fix,但没有成功,我认为有问题或再次更新?
【问题讨论】:
-
尝试 buildToolsVersion '23.0.2' 而不是 buildToolsVersion "23.0.2"
-
无效,同样的错误
标签: android android-gradle-plugin build.gradle