Crashlytics Could Not Find The Manifest
Solution 1:
We were also seeing similar build errors in a couple of modules in our multi module project. Sometimes it manifested as ManifestIOException: Crashlytics could not find the manifest
, other times as a usage statement followed by NullPointerException in com.crashlytics.tools.utils.PropertiesUtils.getProperties()
.
Both of the affected modules were library modules where both the application and its library module were using Crashlytics. We fixed the error as follows:
Move the following line from library build.gradle to application build.gradle:
apply plugin: 'io.fabric'
Move any
crashlytics
blocks from library build.gradle to application build.gradle:crashlytics { enableNdk true }
We left the Crashlytics dependencies intact in both the application and library module, only the plugin was relocated. It seems like Crashlytics does not like to be integrated in library modules for some reason and will complain about it at compile time, so it's better to integrate Crashlytics in your app module and just add the dependencies to the library if your library needs to do anything with Crashlytics.
Post a Comment for "Crashlytics Could Not Find The Manifest"