【问题标题】:Error while running 'tns doctor'运行“tns 医生”时出错
【发布时间】:2017-04-25 22:32:22
【问题描述】:

我已成功完成 nativescript 的设置,没有出现任何错误或问题。但是当我使用tns doctor 测试我的nativescript 安装时,我收到了类似这样的错误。

【问题讨论】:

  • 您是否考虑过以管理员身份使用控制台运行设置?
  • 这次只有红色显示的行不来。其余都是一样的
  • @pkanev 当我尝试在我的项目目录中运行tns run android 时,错误来了。 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.

标签: angular nativescript


【解决方案1】:

您的 Android 环境变量未设置。 取自文档。

设置 ANDROID_HOME=安装位置\android-sdk

设置 PATH=%PATH%;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools

【讨论】:

    猜你喜欢
    • 2021-12-04
    • 2021-08-19
    • 1970-01-01
    • 2021-08-10
    • 2021-08-21
    • 2021-08-11
    • 1970-01-01
    • 1970-01-01
    • 2019-01-22
    相关资源
    最近更新 更多