简体   繁体   中英

Error:org.xml.sax.SAXParseException .. Execution failed for task ':app:fabricGenerateResourcesDebug'. Crashlytics Developer Tools error

Getting the error on building the android studio. How to resolve this:

ERROR:

Error:org.xml.sax.SAXParseException; lineNumber: 148; columnNumber: 88; The prefix "tools" for element "tools:validation" is not bound.
Error:Execution failed for task ':app:fabricGenerateResourcesDebug'.
> Crashlytics Developer Tools error.

GradleFile:

apply plugin: 'com.android.application'
apply plugin: 'io.fabric'

android {
    compileSdkVersion 26
    buildToolsVersion '27.0.3'

    defaultConfig {
        applicationId "PackageName"
        minSdkVersion 16
        targetSdkVersion 25
        versionCode 20
        versionName "20.0"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    sourceSets {
        main.java.srcDirs += 'src/main/kotlin'
    }

    configurations {
        all*.exclude group: 'com.squareup.okhttp3', module: 'okhttp'
    }

    testOptions {
        unitTests.returnDefaultValues = true
    }

}

crashlytics {
    enableNdk true
    androidNdkOut 'src/main/obj'
    androidNdkLibsOut 'src/main/libs'
}

repositories {
    mavenCentral()
    maven { url 'https://maven.fabric.io/public' }
    google()
    jcenter()
    maven { url 'https://github.com/leonardocardoso/mvn-repo/raw/master/maven-deploy' }
}


dependencies {
    //Dependencies 
}

// ADD THIS AT THE BOTTOM
apply plugin: 'com.google.gms.google-services'

EDIT: I have Added the crashlytics key in manifest

<meta-data
            android:name="io.fabric.ApiKey"
            android:value="bddb9792335804f5fee7" />

Try this one . You can also solve it with the Fabric plugin in Android Studio.

Hope this works !

通过删除与深度链接有关的其他一些标签,解决了Crashlytics问题SAX错误从未解决的问题:)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM