gpt4 book ai didi

android - 如何在 Mac 上添加平台 android (cordova)

转载 作者:行者123 更新时间:2023-11-29 17:48:12 25 4
gpt4 key购买 nike

我已按照说明进行操作。 phonegab docsHow to add android to cordova platform? PATH error? export PATH

我的 .bash_profile:

export PATH=/usr/local/bin:$PATH
export PATH=$PATH:~/Development/adt-bundle-mac-x86_64-20140321/sdk/platform-tools
export PATH=${PATH}:~/Development/adt-bundle-mac-x86_64-20140321/sdk/platform-tools:~/Development/adt-bundle-mac-x86_64-20140321/sdk/tools
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
eval "$(rbenv init -)"

但在我执行 cordova 平台添加 android 或 ionic 平台 android 时仍然出错:

Error: The command "android" failed. Make sure you have the latest Android SDK installed, and the "android" command (inside the tools/ folder) is added to your path.

任何解决方案?谢谢

最佳答案

尝试在命令行中运行android。如果找不到该命令,则说明注册的android sdk路径仍然错误

关于android - 如何在 Mac 上添加平台 android (cordova),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24951809/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com