我是第一次安装Cordova。我完全按照Cordova的启动指南中的说法完成了。我已经安装了Android studio。正如所解释的那样,路径已经设定。我甚至可以从终端打开android管理器,但每当我运行命令'cordova requirements'时,它会给出这个输出:
Android SDK: not installed
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 target: not installed
Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable.
Gradle: not installed
Could not find gradle wrapper within Android SDK. Could not find Android SDK directory.
Might need to install Android SDK or set up 'ANDROID_HOME' env variable.
当我运行printenv时,android路径就像这样设置
ANDROID_HOME=/home/dev/Android/Sdk
请帮我设置一下。 提前致谢