andrehtissot / cordova-plugin-fcm-with-dependecy-updated

Google FCM Push Notifications Cordova Plugin
MIT License
210 stars 279 forks source link

Manifest merger failed : uses-sdk:minSdkVersion 15 cannot be smaller than version 16 #258

Open ahmedfarag2010 opened 3 years ago

ahmedfarag2010 commented 3 years ago

I'm trying to build android but always got this error. I'm using 5.4.16 ionic v

Manifest merger failed : uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library [com.google.firebase:firebase-messaging:19.0.0] C:\Users\LENOVO.gradle\caches\transforms-2\files-2.1\8946ba11a19d46b7ec9b3940766a79e9\jetified-firebase-messaging-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.messaging" to force usage (may lead to runtime failures)

201

bogere commented 2 years ago

Just add this line to your AndroidManifest.xml for your project to override the project minimum sdk of API 15. That file where u add the android permissions, u just add this statement there. <uses-sdk tools:overrideLibrary="com.shazam.android.widget.text.reflow, com.google.firebase.messaging"/> I happen to use react native for development instead of cordova or ionic , but this error is related to Android implementation thus it works across all the frameworks even the native java code Reference