Use external google-services.json file in library

偶尔善良 提交于 2019-12-03 15:26:18

You can't have a google-services.json file in a library. You have to add the dependencies needed, and it is enough to compile to library.

Instead in the projects which will use the library, you have to add the plugin and the google-services.json file.

To do it in your library, in the build.gradle you have to remove the line

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