cli icon indicating copy to clipboard operation
cli copied to clipboard

react-native doctor not find Android Studio

Open sli930 opened this issue 3 years ago • 9 comments

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.

sli930 avatar Sep 23 '23 10:09 sli930

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 avatar Oct 08 '23 12:10 szymonrybczak

@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 avatar Nov 04 '23 21:11 ctoto93

@ctoto93 mind sharing output of envinfo --IDEs command?

szymonrybczak avatar Nov 06 '23 06:11 szymonrybczak

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

liquidvisual avatar Nov 16 '23 05:11 liquidvisual

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)

prasantadh avatar Dec 18 '23 15:12 prasantadh

I create an issue, and it seems the bug by envinfo https://github.com/tabrindle/envinfo/issues/250

gaozhidf avatar Feb 12 '24 09:02 gaozhidf

For me this was the solution (Ubuntu 22.04.4 LTS):

  1. ✖ Android SDK: you need to install sdkmanager using android sdk command line tools in settings/android sdk/sdk tools.
  2. ✖ 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

seyedmahdii avatar Nov 12 '24 08:11 seyedmahdii

How can I resolve this problem IDEs: VSCode: 0.46.8 - d:\cursor\resources\app\bin\code.CMD

ILOVEZC avatar Apr 28 '25 12:04 ILOVEZC

I have everything ready except the as.

ILOVEZC avatar Apr 28 '25 12:04 ILOVEZC