-
Notifications
You must be signed in to change notification settings - Fork 679
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request to support androidx library #1102
Comments
@mkashlev You may want to check out react-native-firebase. I am currently migrating to that. There is an example in this repo showing the migration path. |
any update on this issue ? I've been running into the same for a few days and didn't find any solution yet. |
I've finally managed to build successfully by manually replacing all mentioned imports with their respective androidx imports .. |
one can use 'npx jetify' to migrate to androidX. It has rather good manual |
Is there a solution for this without manually editing stuff in npm_modules? |
I don't think this library is supported anymore. You can do all of the same things with |
I have upgraded react native, react and all libraries to latest versions. All of them support androidx. However, your library is lagging behind.
Migrating to androidx removes the android.support dependency. This dependency and androidx conflict with each other and, frankly, share the same functionality. However, react-native-fcm depends on android.support.* dependencies.
When I try to compile code for android by running react-native run-android, which, in turn, runs gradle assemble, I get the following errors:
I had to manually fix by subbing the following with the following:
android.support.v4.content.LocalBroadcastManager -> androidx.localbroadcastmanager.content.LocalBroadcastManager
android.support.v4.app.NotificationManagerCompat -> androidx.core.app.NotificationManagerCompat
android.support.v4.app.NotificationCompat -> androidx.core.app.NotificationCompat
Environment info:
The text was updated successfully, but these errors were encountered: