WARNING: The Android SDK is not installed or is not configured properly.
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
調査の方向性
tns doctor のエントリーポイントから始め、issue に記載されている Ubuntu、Node.js、Java、NativeScript、Android SDK のバージョンを使ってレポートを再現します。成功するチェックと、ネイティブエミュレーターに関する別の警告を比較し、レポート内でリンクされている Android SDK のセットアップ要件を確認します。警告の動作が説明され、診断結果が構成を正確に反映していれば完了です。
索引モデルが issue の本文から書いたものです。
説明
I followed all instructions in this official page NativeScript Advanced Setup: Linux.
I only got stuck at this step:
sudo apt-get install lib32z1 lib32ncurses5 libbz2-1.0:i386 libstdc++6:i386
for which I had to first run:
sudo dpkg --add-architecture i386
Regarding emulators, I chose genymotion. (did not install avd)
Now, after installing everything, here are all relevant environment settings/info I could get:
$ lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
$ node -v
v8.10.0
$ javac -version
javac 1.8.0_191
# installed latest android packages for Android 28
$ sudo $ANDROID_HOME/tools/bin/sdkmanager "tools" "emulator" "platform-tools" "platforms;android-28" "build-tools;28.0.3" "extras;android;m2repository" "extras;google;m2repository"
$ ls /opt/android-sdk
build-tools emulator extras licenses patcher platform-tools platforms tools
$ echo $PATH
/opt/android-sdk/platform-tools:/opt/android-sdk/tools:/opt/android-sdk/tools/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
$ adb version
Android Debug Bridge version 1.0.40
Version 4986621
Installed as /opt/android-sdk/platform-tools/adb
$ tns --version
5.1.0
$ node
> process.env.ANDROID_HOME
`/opt/android-sdk`
> process.env.JAVA_HOME
'/usr/lib/jvm/java-8-oracle'
$ echo $ANDROID_HOME
/opt/android-sdk
$ echo $JAVA_HOME
/usr/lib/jvm/java-8-oracle
Now I finally check tns doctor...
There seem to be issues with your configuration.
✔ Getting NativeScript components versions information...
✔ Component nativescript has 5.1.0 version and is up to date.
✔ Your ANDROID_HOME environment variable is set and points to correct directory.
✔ Your adb from the Android SDK is correctly installed.
✔ A compatible Android SDK for compilation is found.
✔ Javac is installed and is configured properly.
✔ The Java Development Kit (JDK) is installed and is configured properly.
✔ Local builds for iOS can be executed only on a macOS system. To build for iOS on a different operating system, you can use the NativeScript cloud infrastructure.
✖ WARNING: The Android SDK is not installed or is not configured properly.
You will not be able to run your apps in the native emulator. To be able to run apps
in the native Android emulator, verify that you have installed the latest Android SDK
and its dependencies as described in http://developer.android.com/sdk/index.html#Requirements
As you can see, tns doctor says everything is fine... but not really.
Precisely, I don't get the
"✔ A compatible Android SDK for compilation is found."
Vs
"✖ WARNING: The Android SDK is not installed or is not configured properly."
Is that even possible ?
Any idea of any further investigations I should do ?
P.S: please, this is not the same problem as #3585 where adb is clearly in cause... #3585 title should be : "WARNING: adb from the Android SDK is not installed or is not configured properly." which is quite different
- 主要言語
- JavaScript
- スター
- 1.1k
- フォーク
- 204
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 8
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
NativeScript/nativescript-cli のほかの issue
-
in-progress
NativeScript/nativescript-cli#6140 · コメント 2 件 · 担当者 1 名 ·
-
NativeScript/nativescript-cli#6090 · 担当者 1 名 ·
-
in progress
NativeScript/nativescript-cli#6015 · リアクション 1 件 · 担当者 1 名 ·
-
question
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
NativeScript/nativescript-cli#5992 · コメント 5 件 ·
-
feature-pending-triage
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
NativeScript/nativescript-cli#5975 ·
NativeScript/nativescript-cli の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
avniproject/avni-client#2135 ·
-
automated broken-link
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
agent/security hive/hosted-available-lke648397-260827-5n31 security
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
babalae/bettergi-scripts-list#3674 ·
-
A-Release-Notes C-Editing D-Modest S-Ready-For-Implementation
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
bevyengine/bevy-website#2595 ·