[英]“Error: Your android platform does not have Api.js” when trying to build android version 5.x.x
cordova version is 7.0.1
科尔多瓦版本是
7.0.1
node version is v8.0.0
节点版本为
v8.0.0
when running cordova platform add android@5
everything works fine. 当运行
cordova platform add android@5
一切正常。 (except for cordova-plugin-media
requiring android version >=6.1.0
but thats another story) (除了
cordova-plugin-media
需要android版本>=6.1.0
但这就是另一个故事)
When running cordova platform add android@4
(similar for cordova platform add android@3
) I get 当运行
cordova platform add android@4
(与cordova platform add android@3
类似,请cordova platform add android@3
)我得到
Using cordova-fetch for cordova-android@4
Adding android project...
Error: Your android platform does not have Api.js
despite cordova officially still supporting those android versions. 尽管cordova仍正式支持这些android版本。 What am I missing here?
我在这里想念什么?
The only other post remotely containing this particular error I found is here , but it was not helpful. 我找到的唯一远程包含此特定错误的其他帖子在这里 ,但没有帮助。
I solved this problem trying 6.0.0 version 我尝试了6.0.0版本解决了这个问题
npm install -g cordova@6.0.0
then there was error with bplist-parser in npm 然后在npm中bplist-parser有错误
npm install -g bplist-parser
All works fine! 一切正常!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.