react-native-community / cli

The React Native Community CLI - command line tools to help you build RN apps
MIT License
2.41k stars 905 forks source link

Doctor cant find Android Studio in toolbox #2525

Closed lianzhy closed 1 month ago

lianzhy commented 1 month ago

My Android studio is installed somewhere else, but I can't detect it with npx react-native doctor, how should I configure it to fix this? I've tried to create a soft connection between the C:\Users\YaGao\AppData\Local\Android directory and my installation directory, but it doesn't seem to work image image image image

liamjones commented 1 month ago

The doctor command uses the envinfo package to locate tools so this should probably be reported there. It looks like it might be a known issue? https://github.com/tabrindle/envinfo/issues/258

lianzhy commented 1 month ago

thinks,i did not anything,just use mklink command to instead of the fix android studio path