cli: React Native Doctor is unable to detect the Android SDK in Windows 10
Hello I tried to exec the npx react-native doctor and obtain that:
I have installed the android-sk 33 and 34, but supported .b33.0.0. I need help please!!
The npx react-native info get that:
And I installed the latest version (11) from Android SDK Command-line Tools
React native project to test: https://github.com/bogdanbaghiu/test_image_colors
But the check of Android Sdk not pass đŠ
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 7
- Comments: 26
@szymonrybczak Thanks for your answer! You were right that I had the added library in my package.json and after that I have made several changes to my package.json that I invite you to look at and try. I have made some progress but I will tell you what I have been discovering.
I Delete the
node_modules,android folderandpackage-lock. I did an installnpx expo install react-native-image-colorslibrary, I already had it installed but I did it so that theyarn.lockfile updates all the dependencies. Then I did annpm installthat installed all the dependencies in my project. Next I launched thenpx expo run:androidcommand and it created an android build again. It launched successfully on my device. Finally I told myself that I am going to check if thenpx react-native doctorcommand has solved my problem and apparently it still looked the same.Then I realized that if I delete the android folder from my project I get the following:
I have noticed that the npx expo run:android command generates the android build but for some reason it says that the Android SDK supported has to be .b33.0.0 and the ones I have installed are 33.0.0
Could you check if the same thing happens to you with my project but on your computer? If it doesnât happen to you, could you please try to guide me to know why it tells me that it needs an sdk with .b in front of 33.0.0?
Hi @bogdanbaghiu, did you ever figure out why you are seeing the
.bin front of the version number? Iâm using Expo, and upon runningnpx react-native doctorI also see that the version supported has a.bprefixed in front of the version number, but I donât know what itâs meant to mean.Mesmo problema aqui no macOS Sonoma 14.5
Update: Consegui resolver dessa forma:
Provavelmente nĂŁo Ă© a maneira mais adequada. Mas foi a Ășnica forma que consegui resolver essa issue.
If you have any issues like version supported .b34.0.0
Make sure you have Android NDK of 27.0.11902837 and also set that in your project; Like below:
buildscript { ext { ⊠kotlinVersion = findProperty(âandroid.kotlinVersionâ) ?: â1.9.23â
}
hey all! if youâre using
expoinside your project e.g. Expo is generatingandroid/folder, you shouldnât usenpx react-native doctorto check environment of your project, then you should use Expo tools to check project-related conditions.If the issue is presented and youâre using project bootstrapped with React Native Community CLI and not levering Expo tools please feel free to open new issue.
Looks like this code is looking for a
digitor a.This has problems when build.gradle has content like thisRunning
npx expo-doctorand fixing some of the warnings seems to have helped, for me đSame issue for me too!!!
if anybody knows how to fix this please help me
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_HOME - Environment variable that points to your Android SDK installation â Gradlew - Build tool required for Android builds â Android SDK - Required for building and installing your app on Android
Environment:
System: OS: Windows 10 10.0.19043 CPU: (8) x64 IntelÂź Coreâą i5-10210U CPU @ 1.60GHz Memory: 2.97 GB / 7.88 GB Binaries: Node: version: 20.12.2 path: C:\Program Files\nodejs\node.EXE Yarn: Not Found npm: version: 10.5.2 path: C:\Program Files\nodejs\npm.CMD Watchman: Not Found SDKs: Android SDK: API Levels: - â34â Build Tools: - 34.0.0 Android NDK: Not Found Windows SDK: AllowAllTrustedApps: Disabled Versions: - 10.0.16299.0 IDEs: Android Studio: AI-233.14808.21.2331.11709847 Visual Studio: - 16.10.31424.327 (Visual Studio Community 2019) Languages: Java: 17.0.11 Ruby: Not Found npmPackages: â@react-native-community/cliâ: Not Found react: installed: 18.2.0 wanted: 18.2.0 react-native: installed: 0.74.2 wanted: 0.74.2 react-native-windows: Not Found npmGlobalPackages: âreact-nativeâ: Not Found Android: hermesEnabled: true newArchEnabled: false iOS: hermesEnabled: Not found newArchEnabled: Not found
ign) $ npx react-native info info Fetching system and libraries information⊠System: OS: Windows 11 10.0.22631 CPU: (8) x64 IntelÂź Coreâą i7-8650U CPU @ 1.90GHz Memory: 8.00 GB / 15.85 GB Binaries: Node: version: 20.10.0 path: C:\Program Files\nodejs\node.EXE Yarn: version: 1.22.19 path: ~\AppData\Roaming\npm\yarn.CMD npm: version: 10.4.0 path: C:\Program Files\nodejs\npm.CMD Watchman: Not Found SDKs: Android SDK: API Levels: - â31â - â33â - â34â Build Tools: - 30.0.3 - 31.0.0 - 34.0.0 System Images: - android-30 | Google Play Intel x86 Atom - android-34 | Intel x86_64 Atom - android-34 | Google APIs Intel x86_64 Atom Android NDK: Not Found Windows SDK: Not Found IDEs: Android Studio: AI-232.10300.40.2321.11668458 Visual Studio: Not Found Languages: Java: javac 20 Ruby: Not Found npmPackages: â@react-native-community/cliâ: Not Found react: installed: 18.1.0 wanted: 18.1.0 react-native: installed: 0.74.1 wanted: ^0.74.1 react-native-windows: Not Found npmGlobalPackages: âreact-nativeâ: Not Found Android: hermesEnabled: true newArchEnabled: false iOS: hermesEnabled: Not found newArchEnabled: Not found
Iâm having the same issue on Apple Silicon and I am NOT using expo. SDK is there but same doctor results⊠Thoughts?
`npx react-native info
WARNING: You should run npx react-native@latest to ensure youâre always using the most current version of the CLI. NPX has cached version (0.73.1) != current release (0.73.3)
info Fetching system and libraries information⊠System: OS: macOS 14.3 CPU: (10) arm64 Apple M1 Pro Memory: 2.34 GB / 16.00 GB Shell: version: â5.9â path: /bin/zsh Binaries: Node: version: 19.4.0 path: ~/.nvm/versions/node/v19.4.0/bin/node Yarn: version: 1.22.19 path: /opt/homebrew/bin/yarn npm: version: 9.2.0 path: ~/.nvm/versions/node/v19.4.0/bin/npm Watchman: version: 2023.06.12.00 path: /opt/homebrew/bin/watchman Managers: CocoaPods: version: 1.14.3 path: /Users/km2t7x72tn/.rbenv/shims/pod SDKs: iOS SDK: Platforms: - DriverKit 23.2 - iOS 17.2 - macOS 14.2 - tvOS 17.2 - visionOS 1.0 - watchOS 10.2 Android SDK: Not Found IDEs: Android Studio: 2022.1 AI-221.6008.13.2211.9619390 Xcode: version: 15.2/15C500b path: /usr/bin/xcodebuild Languages: Java: version: 21.0.1 path: /usr/bin/javac Ruby: version: 2.7.6 path: /Users/km2t7x72tn/.rbenv/shims/ruby npmPackages: â@react-native-community/cliâ: Not Found react: installed: 18.2.0 wanted: 18.2.0 react-native: installed: 0.73.1 wanted: 0.73.1 react-native-macos: Not Found npmGlobalPackages: âreact-nativeâ: Not Found Android: hermesEnabled: true newArchEnabled: false iOS: hermesEnabled: true newArchEnabled: false
info React Native v0.73.3 is now available (your project is running on v0.73.1). `