Home » Android » android – Crashlytics could not find the manifest with fabric.properties

android – Crashlytics could not find the manifest with fabric.properties

Posted by: admin May 14, 2020 Leave a comment

Questions:

Im using classpath ‘io.fabric.tools:gradle:1.+’ and have a fabric.properties inside the module that I use for the fabric plugin.

When I run gradlew crashlyticsUploadDistributionProdStaging I get:

`Crashlytics could not find the manifest`
com.crashlytics.tools.android.project.ManifestData$ManifestIOException: Crashlytics could not find the manifest. Not found at .../app/build/intermediates/manifests/full/prod/staging/AndroidManifest.xml

Why?

How to&Answers:

It worked after I updated the fabric.properties with the right data and split the commannds:

gradlew assembleProdStaging 
gradlew crashlyticsUploadDistributionProdStaging 

Without that the error still appear.

Answer:

Had the same problem.

Setting mansifest path in gradle solves the issue:

crashlytics {
    manifestPath = "$buildDir/PATH_TO_YOUR_MANIFEST/AndroidManifest.xml"
}