我正在尝试将Cordova版本升级到Cordova 9(Cordova-android 8)。添加平台时,我在下面收到错误消息。
请为此提出任何解决方案。
Using cordova-fetch for cordova-android@^8.0.0
Adding ng-modules-scripts project...
Unable to load PlatformApi from platform. Error: Uncaught, unspecified "error" event. (Does not appear to implement platform Api.)
Uncaught, unspecified "error" event. (The platform "ng-modules-scripts" does not appear to be a valid cordova platform. It is missing API.js. ng-modules-scripts not supported.)
Build step 'Execute shell' marked build as failure
Archiving artifacts
Finished: FAILURE
此致
Tripaty Sahu
答案 0 :(得分:1)
您的Cordova项目以某种方式认为它应该添加一个ng-modules-scripts
平台,该平台不存在,因此无法安装。您应该检查cordova platform list
并可能使用config.xml
清洁此平台的package.json
和cordova platform rm ng-modules-scripts
。