简体   繁体   English

尝试构建Android版本5.xx时出现“错误:您的android平台没有Api.js”

[英]“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.

相关问题 Cordova 平台添加 android 给出错误:您的 android 平台没有 Api.js - Cordova Platform add android gives Error: Your android platform does not have Api.js Cordova-android v 9.0.0 构建失败。 Cordova android 平台无效。 缺少 API.js - Cordova-android v 9.0.0 build failed. Invalid Cordova android platform. API.js missing 科尔多瓦2.5.0和Android棒棒糖5.xx和Sencha CMD 3.1.2.342 - Cordova 2.5.0 & Android Lollipop 5.x.x & Sencha CMD 3.1.2.342 在装有Android 5.xx的每台三星设备上错误放大类ImageView - Error inflating class ImageView on every Samsung device with Android 5.x.x 尝试安装 Cordova Android 平台 9 和目标 Android ZDB97444291083CA814DZ 时出现错误“无法从平台加载 PlatformApi” - Error 'Unable to load PlatformApi from the platform' when trying to install Cordova Android Platform 9 and target Android API 29 Android 5.xx设备的Google Cloud Messaging(GCM)注册问题 - Google Cloud Messaging (GCM) Registration Issue With Android 5.x.x devices Flutter:尝试迁移到Android X后在Android中构建问题 - Flutter: Problem to build in Android after trying to migrate to Android X Android:您的 CPU 不支持 VT-x - Android: Your CPU does not support VT-x 未处理的错误。 ('平台“android”似乎不是有效的 cordova 平台。它缺少 API.js。不支持 android。') - Unhandled error. ('The platform “android” does not appear to be a valid cordova platform. It is missing API.js. android not supported.') 尝试在 Unity3d 中构建 Android 版本时遇到问题 - I have a issue when trying to build Android version in Unity3d
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM