-
Notifications
You must be signed in to change notification settings - Fork 24.2k
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
🔥Issue when upgrading from below RN 0.60 to RN above 0.60 - AndroidX #25924
Comments
You need to install jetifier and run it as npm post install script to convert the symbols to use androidx packages. This fixes your issue.
|
@taschik Yes! exactly! Jetifier will upgrade the dependencies from android to androidx 1- First install jetifier using this command Every time you run npm install, the jetifier will convert the dependencies for androidx support.
|
I have already done
I want to use AndroidX and I want to enable Hermes. It seems that it can't find Android libraries and not 3rd party dependencies. Maybe this error is related? #22033 (comment) |
@wmonecke For me these two changes did the job.
|
Hi @javadi69! This only solved the MultiDex issues. All other problems are still present. |
@wmonecke did you try android studio androidx migration tool? (Refactor > Migrate to AndroidX) Also please use Upgrade helper for necessary changes: https://react-native-community.github.io/upgrade-helper/ |
@javadi69 Thanks! The error reduced itself to this now:
I don't understand how this can be an error |
First perform |
@gdoudeng I have deleted node_modules, reinstalled them, done |
Same happens to me |
run |
This solved the PackageList error: https://stackoverflow.com/a/56972260. |
I came accross this same issue too, and listed all the packages like @wmonecke did: packages.add(
new PackageOne(),
new PackageTwo(),
new PacakgeThree()
); However, you need to add each package like this: packages.add(new PackageOne());
packages.add(new PackageTwo());
packages.add(new PacakgeThree()); Hopefully this helps. |
You save my life bro, thanks |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
React Native version:
ISSUE
Hey guys! Updating from 0.59 to 0.60.4 has been such a pain. When trying to build Android using
./gradlew assembleRelease
I get the following error:I have no clue what to do since I have checked all possible stackoverflow/github issues I have seen. I appears as if it can't find the
android
folder in my node modules. Honestly, I have no clue.android/build.gradle:
android/app/build.gradle:
settings.gradle:
MainApplication.java:
Any ideas? This is pretty urgent and I don't know what else to do.
The text was updated successfully, but these errors were encountered: