android - When I try to add firebase push notification in the android studio then it shows an error
问题描述
When I try to add firebase push notification in the android studio then it shows an error.
Manifest merger failed : uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library [com.google.firebase:firebase-iid:19.0.0] C:\Users\golam\.gradle\caches\transforms-2\files-2.1\856a947c1a9c6ebc4d2fc0c2fb4dbece\firebase-iid-19.0.0\AndroidManifest.xml as the library might be using APIs not available in 15
Suggestion: use a compatible library with a minSdk of at most 15,
or increase this project's minSdk version to at least 16,
or use tools:overrideLibrary="com.google.firebase.iid" to force usage (may lead to runtime failures)
解决方案
firebase library com.google.firebase:firebase-iid:19.0.0 is supported minimum uses-sdk:minSdkVersion 16 但您的日志显示您有 15 所以您需要将 minsdk 级别从 15 更改为 16 或使用支持使用-sdk:minSdkVersion 15
推荐阅读
- django - 使用 Google OAuth2 和 Postman 进行身份验证
- autodesk-forge - Autodesk forge 是否仅支持 3D 模型演示?我可以显示二维平面图吗?
- excel - 与多行和多列相交,然后对它们求和
- python - 如何从响应中获取键和值并使用 python 将其存储在 json 文件中?
- node.js - 无法在邮递员中获取请求正文
- javascript - 安装 Angular CLI 时出错
- c# - 从 JSON 对象中获取键值
- c# - 将多个选择表达式组合成动态类
- report - Sparx Enterprise Architect EA 15 - 如何在报告中包含决策表
- python - 当我将 groupby 对象转换为 dict 时,grouper 对象已用尽