b8ne / react-native-pusher-push-notifications

Manage pusher interest subscriptions and notification events in Javascript.
MIT License
96 stars 85 forks source link

Task :app:processDebugMainManifest FAILED #125

Closed Psutariya closed 5 months ago

Psutariya commented 5 months ago

I add the this libraries in my project before add this libraries my project build successfully but after add this libraries throw some error like this.this error come in android plz help me.

Task :app:processDebugMainManifest FAILED [com.google.firebase:firebase-analytics-impl:16.1.1] C:\Users\Admin.gradle\caches\transforms-3\ed1984f91e55205506908bd9377af1dc\transformed\jetified-firebase-analytics-impl-16.1.1\AndroidManifest.xml Warning: Namespace 'com.google.firebase.measurement_impl' used in: com.google.firebase:firebase-analytics-impl:16.1.1, com.google.android.gms:play-services-measurement-impl:21.2.1. WhatsApp Image 2024-01-11 at 5 42 10 PM

my code is below:- android/build.gradle:-

buildscript { dependencies { classpath('com.google.gms:google-services:4.3.0') } }

android/app/build.gradle:- plugins { id('com.google.gms.google-services') }

dependencies { implementation 'com.google.firebase:firebase-messaging:20.0.0' implementation project(':react-native-pusher-push-notifications') implementation 'com.pusher:push-notifications-android:1.4.4' }

android/settings.gradle:-

include ':react-native-pusher-push-notifications' project(':react-native-pusher-push-notifications').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-pusher-push-notifications/android') include ':app'

RNPusherPushNotificationsPackage to MainApplication.java:-

import com.b8ne.RNPusherPushNotifications.RNPusherPushNotificationsPackage; // ... @Override protected List getPackages() { @SuppressWarnings("UnnecessaryLocalVariable") List packages = new PackageList(this).getPackages(); // Packages that cannot be autolinked yet can be added manually here, for example: // packages.add(new MyReactNativePackage()); packages.add(new RNPusherPushNotificationsPackage()); // << Make sure this line is here return packages; }