我跟着this SO answer修復,當Android的工作室給我的錯誤搖籃插件是老,現在有自帶的問題,現在我得到錯誤的SAXParseException這裏是錯誤的消息。搖籃生成錯誤或錯誤Android Studio中
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(模塊: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」 – Chol
沒有影響,同樣的錯誤 –