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" />