reactnativecn / react-native-website

React Native 中文网
https://reactnative.cn
MIT License
216 stars 327 forks source link

android 安装环境 #737

Closed rgbtdkjcel closed 5 months ago

rgbtdkjcel commented 10 months ago

请按以下格式提供问题的相关信息。

问题的具体描述

我在windows10上安装了android sdk环境,但是通过npx @react-native-community/cli doctor进行检测时,提示找不到环境这个环境,请问一下下,是哪个环境出问题 了?

image

执行ADB环境: image

现在不知道是哪个环节出问题了,求指点。

sunnylqm commented 10 months ago

没有配置环境变量

rgbtdkjcel commented 10 months ago

肯定配置了,兄弟,能不能加个V?有偿帮忙解决一下?

wubaibin commented 8 months ago

请问解决了吗

sunnylqm commented 8 months ago

doctor的输出其实不重要,具体编译过程中有什么错误再贴出来

wubaibin commented 8 months ago

`wubaibin@wubaibins-MacBook-Pro ~ % npx @react-native-community/cli doctor ⠏ Running diagnostics... warn We couldn't find a package.json in this directory. Android SDK checks may fail. Doctor works best in a React Native project root. Common ✓ Node.js - Required to execute JavaScript code ✓ yarn - Required to install NPM dependencies ✓ npm - Required to install NPM dependencies ✓ Watchman - Used for watching changes in the filesystem when in development mode

Android ✖ Adb - No devices and/or emulators connected. Please create emulator with Android Studio or connect Android device. ✓ JDK - Required to compile Java code ✓ Android Studio - Required for building and installing your app on Android ✖ Android SDK - Required for building and installing your app on Android

wubaibin commented 8 months ago

An error occurred while installing json (2.6.3), and Bundler cannot continue. Make sure that gem install json -v '2.6.3' --source 'https://rubygems.org/' succeeds before bundling.

In Gemfile: cocoapods was resolved to 1.13.0, which depends on cocoapods-core was resolved to 1.13.0, which depends on algoliasearch was resolved to 1.27.5, which depends on json ✖ Installing Ruby Gems error Looks like your iOS environment is not properly set. Please go to https://reactnative.dev/docs/environment-setup?os=macos&platform=android and follow the React Native CLI QuickStart guide for macOS and iOS.

sunnylqm commented 8 months ago

An error occurred while installing json (2.6.3), and Bundler cannot continue. Make sure that gem install json -v '2.6.3' --source 'https://rubygems.org/' succeeds before bundling.

这不是已经告诉你要你干啥吗

github-actions[bot] commented 5 months ago

👋 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.