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'.

build.gradle of module level gradle:

    apply plugin: ''

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId ""
        minSdkVersion 9
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), ''

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    testCompile 'junit:junit:4.12'
    compile ''
    compile ''

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).


The error itself clearly explains what is wrong here: is not facet-valid with respect to pattern '[a-zA-Z0-9_-;.]+' for type 'segmentListType'.

Just remove the space before apply plugin: '' and rebuild the project again.

Leave a Reply

Your email address will not be published. Required fields are marked *