首页 > 解决方案 > 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)

标签: androidfirebasefirebase-cloud-messaging

解决方案


firebase library com.google.firebase:firebase-iid:19.0.0 is supported minimum uses-sdk:minSdkVersion 16 但您的日志显示您有 15 所以您需要将 minsdk 级别从 15 更改为 16 或使用支持使用-sdk:minSdkVersion 15


推荐阅读