Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cordova build 出错, 不知原因。 #4

Open
flight9 opened this issue Jun 15, 2018 · 1 comment
Open

cordova build 出错, 不知原因。 #4

flight9 opened this issue Jun 15, 2018 · 1 comment

Comments

@flight9
Copy link

flight9 commented Jun 15, 2018

我 Cordova 版本 7.0.1
下载好示例代码, 进目录运行 cordova build 就提示出错:
···
Error: Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable.
···
但是 我其他 Cordova 项目运行就没有问题, 而且 ANDROID_HOME 也是设好的, SDK 也安装好的。

难道是项目的 Cordova 和我安装的 7 不兼容?

@flight9
Copy link
Author

flight9 commented Jun 15, 2018

自己回答一下解决方案:
用 cordova platform version android
查看下 5.1.1, 可能是本项目添加 比较早, 和我目前其他项目用的 6.2.3 不匹配, 然后
用 cordova platform update android 升级一下
就可以正常 build 了。
如果说的不对请懂行的朋友指正, 谢谢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant