【问题标题】:NativeScript: Still getting "Android SDK Is Not Installed Error" when running TNS DoctorNativeScript:运行 TNS Doctor 时仍然收到“未安装 Android SDK 错误”
【发布时间】:2020-09-25 01:14:40
【问题描述】:

我很难设置 Android。一年多来我一直在专门做 iOS 没有问题,但是在安装 Android Studio、创建模拟器、下载 SDK 之后,我仍然收到这个错误:✖ WARNING: The Android SDK is not installed or is not configured properly.我检查了我的 bash 配置文件并将其粘贴在下面。关于如何进行的任何想法?

~/.bash_profile

export JAVA_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home
export ANDROID_HOME=/usr/local/share/android-sdk
export ANDROID_SDK_ROOT=/usr/local/share/android-sdk

【问题讨论】:

    标签: nativescript


    【解决方案1】:

    由于您已使用 Android Studio 安装了 Android SDK,因此您的 ANDROID_HOME 路径应为 /Users/$userid/Library/Android/sdk

    source

    我也有同样的问题。切换到我上面提到的路径后,一切都对我有用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-05-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多