NativeScript / NativeScript/nativescript-cli
Detect Android SDK using ANDROID_SDK_ROOT env var
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 1.1k
- フォーク
- 204
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 8
説明
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
- CLI: 7.0.7
- Cross-platform modules:
- Android Runtime:
- iOS Runtime:
- Plugin(s):
Describe the bug
On running the command ns doctor, I get this message
× The ANDROID_HOME environment variable is not set or it points to a non-existent directory. You will not be able to perform any build-related operations for Android.
However, I have the ANDROID_SDK_ROOT env var set which is equivalent to ANDROID_HOME.
To Reproduce
Run ns doctor
Expected behavior
I expected it to detect the Android SDK using the ANDROID_SDK_ROOT env var.
Sample project
Additional context
https://developer.android.com/studio/command-line/variables#envar
The ANDROID_HOME env var is deprecated. Refer to the link above.
Please guide me on how to fix this.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
ns doctor の背後にある実装と、その Android SDK の環境変数チェックから始めてください。issue ではファイルもテストも指定されていません。ANDROID_SDK_ROOT を設定し、ANDROID_HOME が存在しない状態での動作を確認し、ns doctor が警告なしで SDK を認識することを確認してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- android, javascript
- 領域
- cli
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100