对cordova-android@^8.0.0使用cordova-fetch

时间:2019-05-28 06:30:40

标签: cordova cordova-plugins visual-studio-cordova cordova-android

我正在尝试将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

1 个答案:

答案 0 :(得分:1)

您的Cordova项目以某种方式认为它应该添加一个ng-modules-scripts平台,该平台不存在,因此无法安装。您应该检查cordova platform list并可能使用config.xml清洁此平台的package.jsoncordova platform rm ng-modules-scripts