gpt4 book ai didi

android - 如何只为 Android 初始化 react-native 项目?

转载 作者:行者123 更新时间:2023-12-05 06:19:33 25 4
gpt4 key购买 nike

我可以只为 android 初始化 react-native 应用程序吗?我在 Mac 上执行了以下操作

npx react-native init AwesomeProject

但因 cocoapods 相关错误而失败。

Error: Failed to install CocoaPods dependencies for iOS project, which is required by this template.

现在 AFAIK,IOS 应用程序需要 cocoapods,我不想花时间调查这些错误。

最佳答案

我在使用 cocoapods 时遇到了同样的问题,这就是我如何能够只为 android 做到这一点。

npx react-native init testproject --skip-install

npm install

npx react-native run-android

关于android - 如何只为 Android 初始化 react-native 项目?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60800219/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com