react-native doctor not find Android Studio
Ask your Question
Common
✓ Node.js - Required to execute JavaScript code
✓ yarn - Required to install NPM dependencies
Android
✓ Adb - Required to verify if the android device is attached correctly
✓ 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
- Versions found: 30.0.3, 33.0.1, 34.0.0
- Version supported: 33.0.0
✓ ANDROID_HOME - Environment variable that points to your Android SDK installation
- local.properties
sdk.dir=/home/sam/Android/Sdk
- echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/usr/lib/jvm/java-17-openjdk-amd64/bin:/snap/android-studio/current/android-studio/bin:/home/sam/Android/Sdk/emulator:/home/sam/Android/Sdk/build-tools:/home/sam/Android/Sdk/platforms:/home/sam/Android/Sdk/platform-tools:/home/sam/Android/Sdk/cmdline-tools/latest/bin
- echo $ANDROID_HOME
/home/sam/Android/Sdk
I installed Snap Version Android Studio on Ubuntu Software. I have checked the Sdk floder is correct.
Hey @sli930, could you please install envinfo package globally and try running envinfo --IDEs to check if this tool finds correctly Android Studio path?
@szymonrybczak I have exactly a similar problem. Envinfo does not find the Android Studio path, installed from snap. What can I do to solve the issue? Thank you for your help :)
@ctoto93 mind sharing output of envinfo --IDEs command?
Just ran into this when upgrading to Sonoma. Android sdk is not being recognised after install. Can anyone please help out?
I ran envinfo and saw this bit - expecting to see Android in the SDK section.
SDKs:
iOS SDK:
Platforms: DriverKit 23.0, iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0
IDEs:
Android Studio: 2022.3 AI-223.8836.35.2231.11005911
Sublime Text: Build 3211
Vim: 9.0 - /usr/bin/vim
Xcode: 15.0.1/15A507 - /usr/bin/xcodebuild
I came here having the same issue. For me the problem wasn't the configuration or the installation. It just required Android Studio to be running (I thought installation was enough)
I create an issue, and it seems the bug by envinfo
https://github.com/tabrindle/envinfo/issues/250
For me this was the solution (Ubuntu 22.04.4 LTS):
- ✖ Android SDK: you need to install sdkmanager using android sdk command line tools in settings/android sdk/sdk tools.
- ✖ Android Studio: I changed the custom installation path to
/opt/for shared users. You can read more here.
Now envinfo is able to find android studio:
envinfo --IDEs
IDEs:
Android Studio: AI-242.23339.11.2421.12483815
Nano: 6.2 - /usr/bin/nano
VSCode: 1.92.0 - /usr/bin/code
Vim: 8.2 - /usr/bin/vim
How can I resolve this problem
IDEs: VSCode: 0.46.8 - d:\cursor\resources\app\bin\code.CMD
I have everything ready except the as.