Quoting Michael Bonnel of Crashlytics:
Just add this in your build.gradle flavor:
crashlytics {
manifestPath = 'path/to/manifest/AndroidManifest.xml'
}
This will override where we are looking!
And in my case, I'm passing build directory as command line argument -PbuildDir="somepath"
,
so final solution is:
if (buildDir) {
buildTypes {
debug {
crashlytics {
manifestPath = "$buildDir/manifests/debug/AndroidManifest.xml"
}
}
}
}