-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用 android studio 安装项目依赖时报错 #16154
Comments
taro-bot2
bot
added
F-react
Framework - React
T-rn
Target - 编译到 React Native
V-3
Version - 3.x
labels
Jul 24, 2024
This was referenced Jul 27, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
React Native
复现仓库
https:/kunkuntang/test-taro-rn.git
使用框架: React
复现步骤
正常安装 taro 项目:
helloworld@cubeSugerdeiMac helloworld % taro init helloworld-tiktok-rn
👽 Taro v3.6.17
⚠ 获取 taro 全局配置文件失败,不存在全局配置文件:/Users/helloworld/.taro-global-config/index.json
Taro 即将创建一个新项目!
Need help? Go and open issue: https://tls.jd.com/taro-issue-helper
? 请输入项目介绍 helloworld-tiktok-rn
? 请选择框架 React
? 是否需要使用 TypeScript ? Yes
? 请选择 CSS 预处理器(Sass/Less/Stylus) Less
? 请选择编译工具 Webpack5
? 请选择包管理工具 yarn
? 请选择模板源 Github(最新)
✔ 拉取远程模板仓库成功!
? 请选择模板 react-native
使用 android studio 打开 项目里的 android 目录,让 android studio 安装项目依赖
期望结果
能够正常打包一个 安装 apk
实际结果
我每次使用 taro 启动 Android 的时候,开发环境是可以跑起来的,无论是 taro playground 还是 使用 yarn dev:android ,但是每次我想用 android studio 打包一个 apk 出来的时候,gradle 在安装依赖时总是会报下面的错误:
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:
FOLLY_LIB
linked by target "expo-modules-core" in directory /Volumes/GLOWAY_STK512GS3-S7_Media/www/helloworld/helloworld-tiktok-rn/node_modules/expo-modules-core/android/legacy
JSI_LIB
linked by target "expo-modules-core" in directory /Volumes/GLOWAY_STK512GS3-S7_Media/www/helloworld/helloworld-tiktok-rn/node_modules/expo-modules-core/android/legacy
REACT_NATIVE_JNI_LIB
linked by target "expo-modules-core" in directory /Volumes/GLOWAY_STK512GS3-S7_Media/www/helloworld/helloworld-tiktok-rn/node_modules/expo-modules-core/android/legacy
REACT_NATIVE_MODULES_CORE
linked by target "expo-modules-core" in directory /Volumes/GLOWAY_STK512GS3-S7_Media/www/helloworld/helloworld-tiktok-rn/node_modules/expo-modules-core/android/legacy
环境信息
The text was updated successfully, but these errors were encountered: