Closed poisonfff closed 1 year ago
![Uploading Snipaste_2022-11-08_10-20-58.png…]()
缺什么补什么就行了,你这里缺
总之文档步骤里应该都有啊?
装了就行,doctor的检查可以忽略
包括环境变量也是按照官方文档来的 依然报错
doctor 这个工具未必同步更新了,以文档为准
但是项目跑不起来
跑不起来就截跑不起来的图
帮忙看一下
老项目是吧,置顶的问题看了吗
是的,老项目,不知您说的置顶问题是指的哪一个?
版本从0.64.3上升到0.64.4,并重新下载依赖
往下截图,上面的看不到具体报错
你是不是自己创建了个buildConfig文件?是的话删掉
删掉后在android目录中运行 ./gradlew clean
再试试
如果,你是指的这个文件的话
删除并执行命令后,启动项目
不是在编译产生的build文件夹(灰色)中,要在你的源码文件夹(非灰色)中找到并删除
项目全局搜了一下,叫buildConfig的文件里面只有一个debug文件夹,应该不是您说的文件,源码里也没有
这看命名就不是正常的文件啊
之前就是删的这3个文件,就是您说的灰色文件
这几个文件不会凭空产生,一定是从源码产生
删除之后,进入android目录中运行 ./gradlew clean,再yarn react-native run-android,他只生成了一个BuildConfig.java文件, 还是报一小时前的错误
一小时前的错误是什么错误,你上面截图里的错误只有这个几个BuildConfig,其他都只看到警告(不影响编译和运行)
请看
现在已经一切正常,编译也已完成
问题就是 No connected devices (链接手机,打开usd调试,或者创建一个模拟器)
电脑上有android studio,也连上了手机,有什么办法让他执行到手机上,而不是android studio的模拟器吗?
这是从别的系统复制过来的项目吧,权限不对,你需要用 chmod 命令给这个 launchPackager.command 文件加上执行权限
或者 rm -rf node_modules && yarn 重装
权限问题没有解决,但是我手动打开了那个文件,跳过了这个问题
👋 Hey there, it looks like there has been no activity on this issue in the last 90 days. Has the issue been fixed, or does it still require the community attention? This issue will be closed in the next 7 days if no further activity occurs. Thank you for your contributions.
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.
执行npx react-native doctor报错 Common ✓ Node.js ✓ yarn ✖ Watchman - Used for watching changes in the filesystem when in development mode
Android ✓ JDK ✓ Android Studio - Required for building and installing your app on Android ✖ Android SDK - Required for building and installing your app on Android
iOS ✓ Xcode - Required for building and installing your app on iOS ✓ CocoaPods - Required for installing iOS dependencies ● ios-deploy - Required for installing your app on a physical device with the CLI