Windows Android SDK path not found
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 74/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- android, react-native, typescript
- 領域
- mobile, testing-qa
調査の方向性
packages/platform-android/src/environment.ts の 546 行目付近から始め、Windows で Android コマンドラインツールのファイル名がどのように解決されるかを調べます。issue に記載されている Windows コマンドと Android デバイスのセットアップで再現し、初期化された SDK が missing-tools エラーなしで検出されることを確認します。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- TypeScript
- スター
- 330
- フォーク
- 17
- 平均マージ
- 8日 11時間
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
callstackincubator/react-native-harness のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 68/100
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 38/100
callstackincubator/react-native-harness の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
rohitg00/agentmemory#1428 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
boxlite-ai/boxlite#1729 ·
メンテナーはふだん 1 日以内に返信
-
detectors enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
SM260845/readme-gen#1 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
angular/angularfire#3774 ·
メンテナーはふだん 2 日以内に返信