-
Notifications
You must be signed in to change notification settings - Fork 567
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
Error on Build - package androidx.anottation #400
Comments
If i change all androidx imports to not androidx, like: // import androidx.annotation.NonNull; The error changes to: |
I solved it. I change all androidx import, as i said here:
Then i run: react-native link Thats it. |
in the future please share errors as text so others can find via search |
Hi there! The whole react-native community will be struggling with the AndroidX transition for a while. The community came up with a tool called jetifier that offers forwards compatibility from non-AndroidX apps to libraries (like this one) that have implemented AndroidX, by "reverse-jetifying" the source with a call to I've tested it on this module and it appears to work (I use react-native-contacts in my app, I'm not just the jetifier maintainer). I encourage you to migrate to AndroidX, but until then this can help. When you do migrate to AndroidX you have the opposite problem with other libraries at which point you'd use jetifier in the forward direction with a call to Please help spread the word so your fellow developers don't get stuck - app development is hard enough. Cheers! |
Hi guys.
I follow the installation guide and i'm with this error on build:
https://imgur.com/a/nOphw4M
I was checking some issues and i found that's similar with this one:
#395
Thanks for helping.
The text was updated successfully, but these errors were encountered: