Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #373
The issue was hard to fix because I initially thought it was related to
CMakeLists.txt
, as the compiler was throwing numerous Nitro/C++ errors.After many attempts, I managed to build it by simply switching the JDK to version 17 via the Android Studio GUI.
Unfortunately, this solution only worked after running
./gradlew clean
and manually removing some cached folders.For Expo users building with EAS, this approach wasn't viable. We needed a way to build Unistyles 3.0 on Android out of the box.
After further investigation, it turned out to be a simple issue with
abiFilters
used by React Native. I had tried adjusting it multiple times before, but Android’s caching system is far too aggressive.This patch will be included by default in
beta.2
, but if you want to run it on.beta1
, follow these steps:For Expo:
rm -rf node_modules
yarn expo prebuild --clean
For Bare React Native:
rm -rf node_modules
rm -rf android/.cxx
rm -rf android/build