Android build fails error: cannot find symbol new HighlighterViewPackage()
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 7.2k
- Forks
- 748
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 1
Description
Android build fails when running yarn android in react native cli latest version 0 84 1 new arch enabled
- What went wrong:
Execution failed for task ':app:compileDevDebugJavaWithJavac'.
Compilation failed; see the compiler output below.
android/app/build/generated/autolinking/src/main/java/com/facebook/react/PackageList.java:154: error: cannot find symbol
new HighlighterViewPackage(),
^
symbol: class HighlighterViewPackage
location: class PackageList
android/app/build/generated/autolinking/src/main/java/com/facebook/react/PackageList.java:155: error: cannot find symbol
new KeyboardInputPackage(getApplication())
^
symbol: class KeyboardInputPackage
location: class PackageList
2 errors
Steps to reproduce
run yarn android (build debug mode of the app)
Expected behavior
android build is built succesfully without any errors
Actual behavior
android build fails
More Info
It is related to uilib-native library, if I apply the patch from that https://github.com/wix/react-native-ui-lib/issues/3805 it works without any error, so when we can expect it to be merged into uilib-native lib?
Environment
- React Native version: 0.84.1 (new arch enabled, hermes enabled)
- React Native UI Lib version: 8.3.4 (latest)
- uilib-native: 5.0.1 (latest)
Affected platforms
- Android
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Android build launched by yarn android and inspect the generated android/app/build/generated/autolinking/src/main/java/com/facebook/react/PackageList.java entries for HighlighterViewPackage and KeyboardInputPackage. Compare the behavior with the patch referenced in issue #3805 and the uilib-native 5.0.1 setup. Done means the React Native 0.84.1 Android debug build completes without either missing-symbol error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, react-native
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100