Nativescript医生抛出警告和错误

Nativescript医生抛出警告和错误,nativescript,Nativescript,我想将我的虚拟android设备连接到nativescript sidekick 当我打开NativeScript Sidekick并单击“虚拟设备启动器”按钮时,我收到以下错误消息 [20-03-24 09:50:23.966] Unable to execute avdmanager, ensure JAVA_HOME is set and points to correct directory 于是我跑了《tns医生》: TIP: To avoid setting up the nece

我想将我的虚拟android设备连接到nativescript sidekick

当我打开NativeScript Sidekick并单击“虚拟设备启动器”按钮时,我收到以下错误消息

[20-03-24 09:50:23.966] Unable to execute avdmanager, ensure JAVA_HOME is set and points to correct directory
于是我跑了《tns医生》:

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

There seem to be issues with your configuration.
Component nativescript has 6.5.0 version and is up to date.
Your ANDROID_HOME environment variable is set and points to correct directory.
WARNING: 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 

WARNING: 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 

WARNING: Cannot find a compatible Android SDK for compilation. To be able to build for Android, install Android SDK 28 or later. 
 Run `$ sdkmanager` to manage your Android SDK versions. 

WARNING: You need to have the Android SDK Build-tools installed on your system. You can install any version in the following range: '>=23 <=29'. 
 Run `$ sdkmanager` from your command-line to install required `Android Build Tools`. In case you already have them installed, make sure `ANDROID_HOME` environment variable is set correctly. 

WARNING: Error executing command 'javac'. Make sure you have installed The Java Development Kit (JDK) and set JAVA_HOME environment variable. 
 You will not be able to build your projects for Android.
To be able to build for Android, verify that you have installed The Java Development Kit (JDK) and configured it according to system requirements as
 described in http://docs.nativescript.org/setup/ns-cli-setup/ns-setup-win.html#system-requirements 

WARNING: WARNING: The Java Development Kit (JDK) is not installed or is not configured properly. 
 You will not be able to work with the Android SDK and you might not be able
to perform some Android-related operations. To ensure that you can develop and
test your apps for Android, verify that you have installed the JDK as
described in http://docs.oracle.com/javase/8/docs/technotes/guides/install/install_overview.html (for JDK 8). 

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.
Your environment is not configured properly and you will not be able to execute local builds. To continue, choose one of the following options: 
Run $ tns preview command to enjoy NativeScript without any local setup.
Run $ tns setup command to run the setup script to try to automatically configure your environment for local builds.
In order to test your application use the $ tns login command to log in with your account and then $ tns cloud build command to build your app in the cloud.
Verify that your environment is configured according to the system requirements described at http://docs.nativescript.org/setup/ns-cli-setup/ns-setup-win.html#system-requirements.
提示:为了避免设置必要的环境变量,您可以使用Chocolate软件包管理器安装Android SDK及其依赖项。
您的配置似乎有问题。
组件nativescript的版本为6.5.0,并且是最新的。
您的ANDROID_HOME环境变量已设置并指向正确的目录。
警告:警告:Android SDK中的adb未安装或未正确配置。
对于与Android相关的操作,NativeScript CLI将使用内置版本的adb。
为避免本机Android emulator、Genymotion或connected可能出现的问题
Android设备,验证您是否安装了最新的Android SDK和
其依赖关系如中所述http://developer.android.com/sdk/index.html#Requirements 
警告:警告:Android SDK未安装或未正确配置。
您将无法在本机仿真器中运行应用程序。能够运行应用程序
在本机Android emulator中,验证您是否安装了最新的Android SDK
及其依赖项,如中所述http://developer.android.com/sdk/index.html#Requirements 
警告:找不到兼容的Android SDK进行编译。要能够为Android构建,请安装Android SDK 28或更高版本。
运行“$sdkmanager”管理您的Android SDK版本。

警告:您需要在系统上安装Android SDK构建工具。您可以安装以下范围内的任何版本:'>=23我建议您的第一个选项是在命令行中运行sdkmanager,然后重试tns run

对于设置java_主路径,这是一个链接:

第二种选择,你可能需要改变ANDROID_HOME的路径:例如,这是我的 C:\Users\USERNAME\AppData\Local\Android\Sdk请注意路径末尾的Sdk