对 cordova-android@^8.0.0 使用 cordova-fetch
Using cordova-fetch for cordova-android@^8.0.0
我正在尝试将 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
您的 Cordova 项目以某种方式认为它应该添加一个 ng-modules-scripts
平台,但该平台不存在,因此无法安装。您应该检查 cordova platform list
并清理此平台的 config.xml
和 package.json
,可能使用 cordova platform rm ng-modules-scripts
.
我正在尝试将 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
您的 Cordova 项目以某种方式认为它应该添加一个 ng-modules-scripts
平台,但该平台不存在,因此无法安装。您应该检查 cordova platform list
并清理此平台的 config.xml
和 package.json
,可能使用 cordova platform rm ng-modules-scripts
.