2016-10-25 11 views
4

私はちょうど私が(管理者権限を持つ)コマンドプロンプトNativeScriptのインストールに関する問題

で以下のコマンドを実行すると、私は

http://docs.nativescript.org/angular/start/quick-setup but I am stuck at "Step 3: Install iOS and Android requirements"

で入手可能な公式のインストールガイドに従っこのため、NavtiveScriptをインストールしようとしていました

@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://www.nativescript.org/setup/win'))" 

すべて問題なくインストールされているようです。私はコマンドを使用してインストールを確認しようとする。しかし、警告以下の「TNSドクター」Iリターン:

D:\>tns doctor 
WARNING: adb from the Android SDK is not installed or is not configured properly. 
For Android-related operations, the NativeScript CLI will use a built-in version of adb. 
To avoid possible issues with the native Android emulator, Genymotion or connected 
Android devices, verify that you have installed the latest Android SDK and 
its dependencies as described in http://developer.android.com/sdk/index.html#Requirements 

TIP: To avoid setting up the necessary environment variables, you can use the chocolatey package manager to install the Android SDK and its dependencies. 

WARNING: The Android SDK is not installed or is not configured properly. 
You will not be able to build your projects for Android and run them in the native emulator. 
To be able to build for Android and run apps in the native emulator, verify that you have 
installed the latest Android SDK and its dependencies as described in http://developer.android.com/sdk/index.html#Requirements 

TIP: To avoid setting up the necessary environment variables, you can use the chocolatey package manager to install the Android SDK and its dependencies. 

NOTE: You can develop for iOS only on Mac OS X systems. 
To be able to work with iOS devices and projects, you need Mac OS X Mavericks or later. 

Cannot find a compatible Android SDK for compilation. To be able to build for Android, install Android SDK 22 or later. 
Run $ android to manage your Android SDK versions. 

You need to have the Android SDK Build-tools installed on your system. You can install any version in the following range: '>=23 <=24'. 
Run android from your command-line to install required Android Build Tools. 

You need to have Android SDK 22 or later and the latest Android Support Repository installed on your system. 
Run $ android to manage the Android Support Repository. 

誰でも案内していただけますか?

私はWindows 10を使用しており、Visual Studio 2015(アップデート3)とVisual Studio Codeを自分のマシンにインストールしています。

+0

これまで私はチョコレートをインストールする際にエラーが発生したので、スクリプトはjdkとandroid sdkのインストールに進むことができませんでした。まだ回答がありません –

答えて

0

https://developer.android.com/studio/index.html

上記のリンクからアンドロイドStudioをインストールしてから、その後、スタジオを実行して、スタジオの中から希望のAndroid SDKのパッケージをインストールします。

+0

私はこれを試しましたが、動作しません。走っている医師はまだエラーを返します。 –

+0

SDKを指すようにPATH変数を設定する必要があります。 –

0

Androidをインストールするコマンドラインも私にとってはうまくいかず、同じエラーが表示されました。私はAndroid Studioをダウンロードしてインストールすることでこれを理解しました。あなたのインストールの後で、私の状況では、/ Users/myMacUserName/Library/Android/sdkであるandroid sdkの場所を見つけることができるはずです。また、SDKマネージャで必要なものをすべて選択することもできます。端末では、NativeScriptのインストール指示 'export ANDROID_HOME =/usr/local/opt/android-sdk'の代わりに、 'export ANDROID_HOME =/Users/myMacUserName/Library/Android/sdk'を実行します。これらのすべての後で、あなたはAndroid SDKのエラーで大丈夫でしょう。

関連する問題