Crashlytics could not find the manifest

一曲冷凌霜 提交于 2019-12-03 01:52:57

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:

  1. Move the following line from library build.gradle to application build.gradle:

    apply plugin: 'io.fabric'

  2. 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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!