我已按照所有步骤使用android平台安装必需的软件包。全部设置完毕,分别为Android SDK,Android Studio和Gradle。但是,当我运行cordova emulate命令时,收到以下消息:
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=/home/jcfrane/Android/Sdk (DEPRECATED)
/opt/android-studio/gradle/gradle-4.10.1/bin/gradle: Command failed with exit code EACCES
我尝试使用 sudo 运行它,收到以下消息:
Failed to find 'ANDROID_HOME' environment variable. Try setting it manually.
Failed to find 'android' command in your 'PATH'. Try update your 'PATH' to include path to valid SDK directory.
我重新检查了环境在正确目录上的指向。运行我的 android 命令。
问题出在哪里?
谢谢!