Skip to content
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

Could not find any version that matches androidx.legacy:legacy-support-v4:28.+. #2255

Closed
nahidmbstu opened this issue Jun 19, 2019 · 7 comments

Comments

@nahidmbstu
Copy link

nahidmbstu commented Jun 19, 2019

Could not find any version that matches androidx.legacy:legacy-support-v4:28.+.
Versions that do not match:
1.0.0
1.0.0-rc02
1.0.0-rc01
1.0.0-beta01
1.0.0-alpha3
+ 1 more
Required by:
project :app > project :react-native-firebase

"react-native-firebase": "^5.2.2",

@mikehardy
Copy link
Collaborator

Hi there!
The library does not natively support AndroidX #1588
There are strategies there you can use if your app has to be AndroidX and you have to use this library, namely you should (after reading the docs) do npm i jetifier && npx jetify in order to use native android react-native dependencies with an AndroidX project before the dependencies have converted.

This will be project-specific though, it isn't related to this specific library

@raja09569
Copy link

Hi there!
The library does not natively support AndroidX #1588
There are strategies there you can use if your app has to be AndroidX and you have to use this library, namely you should (after reading the docs) do npm i jetifier && npx jetify in order to use native android react-native dependencies with an AndroidX project before the dependencies have converted.

This will be project-specific though, it isn't related to this specific library

this worked for me

@mikehardy
Copy link
Collaborator

Glad to hear the success report @raja09569 - thank you, jetifier is also my package, designed with the help of react-native-community to fix these problems but it is brand new so the success reports help.

@raja09569
Copy link

Glad to hear the success report @raja09569 - thank you, jetifier is also my package, designed with the help of react-native-community to fix these problems but it is brand new so the success reports help.
i struggled with this issue from 2 days. you saved my day thank you @mikehardy

@mikehardy
Copy link
Collaborator

next jetify release will have performance improvements and if you rely on it, you might put
a call to it in postinstall in your package.json so you don't forget to run it. Good luck :-)

@abhishekmobile
Copy link

Hi there!
The library does not natively support AndroidX #1588
There are strategies there you can use if your app has to be AndroidX and you have to use this library, namely you should (after reading the docs) do npm i jetifier && npx jetify in order to use native android react-native dependencies with an AndroidX project before the dependencies have converted.

This will be project-specific though, it isn't related to this specific library

Awesome answer. This was nagging me for 2 days, and this small solution helped me. Kudos to mike.

@hakkikonu
Copy link

jetify is life saver!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants