摇篮建立自己的错误:的SAXParseException [英] Gradle build error: SAXParseException
问题描述
打造的应用程序,我得到以下错误:
on building the app, i get following error:
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'.
模块级的的gradle的build.gradle:
build.gradle of module level gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "ms.demo.map"
minSdkVersion 9
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.google.android.gms:play-services-maps:8.4.0'
}
错误甚至清洗应用后仍然存在。包的结构不匹配的applicationID
的gradle中的文件中描述。我使用最新版本的Android工作室(2.0 preVIEW 9)的。
The error remains even after cleaning the app. The structure of package does not match the applicationId
described in gradle file. I am using latest version of Android Studio (2.0 Preview 9).
推荐答案
错误本身清楚地解释了什么是错在这里:不是刻面的有效相对于模式'[A-ZA-Z0- 9 _ \\ - ;.] +'类型'segmentListType
The error itself clearly explains what is wrong here: is not facet-valid with respect to pattern '[a-zA-Z0-9_\-;.]+' for type 'segmentListType'.
就在删除空格应用插件:com.android.application
,再次重建项目
Just remove the space before apply plugin: 'com.android.application'
and rebuild the project again.
这篇关于摇篮建立自己的错误:的SAXParseException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!