Describe the bug
Running yarn react-native-harness --harnessRunner android on an app where react-native-harness was upgraded from 1.0.0-alpha.24 to 1.4.1.
I initially received an "AbortError" that was not very informative as to what the root cause is, but after patching the line that was hiding the original error, I got the error:
"Android command-line tools are missing. Set ANDROID_HOME or ANDROID_SDK_ROOT to an initialized SDK."
And after taking a look at this file I realized that in Windows that file name includes a .bat file extension which is why it was not found.
System Info
react-native-harness==1.4.1
@react-native-harness/platform-android==1.4.1
@react-native-harness/platform-ios==1.4.1
@react-native-harness/reporters==1.4.1
System:
OS: Windows 11 10.0.26200
CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
Memory: 12.84 GB / 31.73 GB
Binaries:
Node:
version: 22.14.0
path: C:\nvm4w\nodejs\node.EXE
Yarn:
version: 1.22.19
path: C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm:
version: 10.9.2
path: C:\nvm4w\nodejs\npm.CMD
Watchman:
version: 20250223.093309.0
path: C:\ProgramData\chocolatey\bin\watchman.EXE
SDKs:
Android SDK:
API Levels:
- "28"
- "30"
- "31"
- "33"
- "34"
- "35"
- "36"
Build Tools:
- 28.0.3
- 30.0.0
- 30.0.2
- 30.0.3
- 31.0.0
- 33.0.0
- 34.0.0
- 35.0.0
- 36.0.0
System Images:
- android-34 | Google APIs Intel x86_64 Atom
- android-35 | Google APIs Intel x86_64 Atom
Android NDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: Not Found
Visual Studio: Not Found
Languages:
Java:
version: 17.0.13
path: C:\Program Files\Microsoft\jdk-17.0.13.11-hotspot\bin\javac.EXE
Ruby: Not Found
npmPackages:
"@react-native-community/cli":
installed: 19.1.1
wanted: 19.1.1
react:
installed: 19.1.0
wanted: 19.1.0
react-native:
installed: 0.80.2
wanted: 0.80.2
react-native-windows: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
React Native Harness Version
1.4.1
Reproduction
N/A
Steps to reproduce
On windows, in a new react native app, run yarn react-native-harness --harnessRunner android with a connected physical android device.
Describe the bug
Running
yarn react-native-harness --harnessRunner androidon an app wherereact-native-harnesswas upgraded from1.0.0-alpha.24to1.4.1.I initially received an "AbortError" that was not very informative as to what the root cause is, but after patching the line that was hiding the original error, I got the error:
"Android command-line tools are missing. Set ANDROID_HOME or ANDROID_SDK_ROOT to an initialized SDK."
And after taking a look at this file I realized that in Windows that file name includes a
.batfile extension which is why it was not found.System Info
react-native-harness==1.4.1 @react-native-harness/platform-android==1.4.1 @react-native-harness/platform-ios==1.4.1 @react-native-harness/reporters==1.4.1 System: OS: Windows 11 10.0.26200 CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz Memory: 12.84 GB / 31.73 GB Binaries: Node: version: 22.14.0 path: C:\nvm4w\nodejs\node.EXE Yarn: version: 1.22.19 path: C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: version: 10.9.2 path: C:\nvm4w\nodejs\npm.CMD Watchman: version: 20250223.093309.0 path: C:\ProgramData\chocolatey\bin\watchman.EXE SDKs: Android SDK: API Levels: - "28" - "30" - "31" - "33" - "34" - "35" - "36" Build Tools: - 28.0.3 - 30.0.0 - 30.0.2 - 30.0.3 - 31.0.0 - 33.0.0 - 34.0.0 - 35.0.0 - 36.0.0 System Images: - android-34 | Google APIs Intel x86_64 Atom - android-35 | Google APIs Intel x86_64 Atom Android NDK: Not Found Windows SDK: Not Found IDEs: Android Studio: Not Found Visual Studio: Not Found Languages: Java: version: 17.0.13 path: C:\Program Files\Microsoft\jdk-17.0.13.11-hotspot\bin\javac.EXE Ruby: Not Found npmPackages: "@react-native-community/cli": installed: 19.1.1 wanted: 19.1.1 react: installed: 19.1.0 wanted: 19.1.0 react-native: installed: 0.80.2 wanted: 0.80.2 react-native-windows: Not Found npmGlobalPackages: "*react-native*": Not Found Android: hermesEnabled: true newArchEnabled: true iOS: hermesEnabled: Not found newArchEnabled: Not foundReact Native Harness Version
1.4.1
Reproduction
N/A
Steps to reproduce
On windows, in a new react native app, run
yarn react-native-harness --harnessRunner androidwith a connected physical android device.