Task :unimodules-react-native-adapter:compileDebugJavaWithJavac FAILED
require(expo-modules-autolinking)(process.argv.slice(1))
^
ReferenceError: expo is not defined
at [eval]:1:9
at Script.runInThisContext (vm.js:134:12)
at Object.runInThisContext (vm.js:311:38)
at internal/process/execution.js:77:19
at [eval]-wrapper:6:22
at evalScript (internal/process/execution.js:76:60)
at internal/main/eval_string.js:23:3
What went wrong,
* What went wrong:
Execution failed for task ':unimodules-react-native-adapter:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
Hey, @adamjnav. everything was working fine till Expo SDK 41. So I am pretty sure that the development setup has been done perfectly. My other projects based on Expo SDK 41 are working as expected.
System:
OS: Windows 10 10.0.19043
CPU: (8) x64 Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz
Memory: 682.79 MB / 7.79 GB
Binaries:
Node: 12.18.3 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.10 - ~\AppData\Roaming\npm\yarn.CMD
npm: 6.14.6 - C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: Version 4.1.0.0 AI-201.8743.12.41.6953283
Visual Studio: Not Found
Languages:
Java: 11.0.2
Python: 3.8.4
npmPackages:
@react-native-community/cli: Not Found
react: 16.13.1 => 16.13.1
react-native: ~0.63.4 => 0.63.4
react-native-windows: Not Found
npmGlobalPackages:
*react-native*: Not Found
Hi @notbrent,
I have the same problem when I try to build the Android app with AppCenter.
No issue when I downgrade Expo to SDK 41.
The version of @unimodules/react-native-adapter in expo dependencies is ~6.3.4.
I tried to uninstall and reinstall react-native-unimodules but it doesn’t work more.
Thanks for your help.
Expo 41 with react-native-unimodules 0.14.6 Failed
Expo 42 with react-native-unimodules 0.14.6 Failed
Expo 42 with react-native-unimodules 0.13.3 Failed
Expo 41 with react-native-unimodules 0.13.3 OK
> Task :unimodules-react-native-adapter:compileReleaseJavaWithJavac FAILED
* What went wrong:
Execution failed for task ':unimodules-react-native-adapter:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.