我已经设法复制这3个不同的回购。我试图同步gradle项目在Android工作室从一个裸露的世博会项目,但我不断得到他与以下错误
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
FBJNI_LIB
linked by target "expo-modules-core" in directory /Users/sebsmith/test-cmake/node_modules/expo-modules-core/android
FOLLY_LIB
linked by target "expo-modules-core" in directory /Users/sebsmith/test-cmake/node_modules/expo-modules-core/android
JSEXECUTOR_LIB
linked by target "expo-modules-core" in directory /Users/sebsmith/test-cmake/node_modules/expo-modules-core/android
JSI_LIB
linked by target "expo-modules-core" in directory /Users/sebsmith/test-cmake/node_modules/expo-modules-core/android
REACT_NATIVE_JNI_LIB
linked by target "expo-modules-core" in directory /Users/sebsmith/test-cmake/node_modules/expo-modules-core/android
REACT_NATIVE_MODULES_CORE
linked by target "expo-modules-core" in directory /Users/sebsmith/test-cmake/node_modules/expo-modules-core/android
我已经运行了expo install
&& expo-cli doctor --fix-dependencies
,所有模块都是最新的。
可复制的步骤
npx create-expo-app test-cmake
cd test-cmake
rm yarn.lock
npm install
expo install
npx expo prebuild
有什么想法吗?
1条答案
按热度按时间w1e3prcc1#
这是一个临时的解决方案,但是进入您的
package.json
并将expo-modules-core
降级到版本9.2,这给了我一些与其他Expo软件包的错误,这些软件包期望更高版本的expo-modules-core
(出于某种原因,VisionCamera
是我想到的一个),所以在尝试这个解决方案时请记住这一点。如果没有,请等到有更新到expo-modules-core