[Expo 42] Bare app build failing
See original GitHub issueEdit Due to a mix of different underlying causes, we have locked this issue. Please read through this comment to find out how you can resolve this issue.
Summary
Android app fails to build on Task :unimodules-react-native-adapter:compileDebugJavaWithJavac
Managed or bare workflow? If you have ios/
or android/
directories in your project, the answer is bare!
bare
What platform(s) does this occur on?
Android
SDK Version (managed workflow only)
No response
Environment
Expo CLI 4.7.2 environment info: System: OS: Windows 10 10.0.19043 Binaries: Node: 14.17.1 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 6.14.13 - C:\Program Files\nodejs\npm.CMD SDKs: Android SDK: API Levels: 26, 29, 30 Build Tools: 29.0.2, 30.0.3 System Images: android-28 | Google Play Intel x86 Atom, android-30 | Google APIs Intel x86 Atom, android-S | Google Play Intel x86 Atom_64 IDEs: Android Studio: Version 4.2.0.0 AI-202.7660.26.42.7351085 npmPackages: expo: ~42.0.0 => 42.0.0 react: 16.13.1 => 16.13.1 react-dom: 16.13.1 => 16.13.1 react-native: ~0.63.4 => 0.63.4 react-native-web: ~0.13.12 => 0.13.18 Expo Workflow: bare
Reproducible demo or steps to reproduce from a blank project
Initialize a new Expo Bare App
Setup typescript (only creating the tsconfig.json and installing the deps when prompted by expo start
)
Add eslint (config universe/native and the plugin simple-import-sort)
Try to yarn android
and it shoud fail on the task mentioned above
Issue Analytics
- State:
- Created 2 years ago
- Comments:30 (8 by maintainers)
Top GitHub Comments
Unfortunately, its still failing. Getting this below error.
Hey all! I’m sorry for this issue and I can confirm this happens on Windows. I created a patch to fix this, I hope we can roll this out asap. If you absolutely need this to work, including on CI, you can work with
patch-package
until it is released.You’ll need to create a file in
patches/@unimodules+react-native-adapter+6.3.1.patch
, with this content:Here is a short guide to set that up:
yarn add --dev patch-package
package.json
"scripts": { "postinstall": "patch-package" }
patches
mkdir patches
patches/@unimodules+react-native-adapter+6.3.1.patch
yarn
to apply the patchIf you commit the patch and changes in your
package.json
, this is applied in CI, classic build, and on EAS.Hope this helps!