离子代码推送更新失败:无法在预安装失败时获取软件包起始页



从客户端上的应用程序更新后,我遇到了以下错误。客户端上的应用程序确实检索了更新版本。但随后发生了错误。

[app-scripts] [15:01:09]  console.error: [CodePush] An error has occured while installing the package. Could not get the package start
[app-scripts]             page. StackTrace: Error: An error has occured while installing the package. Could not get the package start
[app-scripts]             page at preInstallFailure
[app-scripts]             (http://192.168.2.3:8100/plugins/cordova-plugin-code-push/bin/www/localPackage.js:246:41) at
[app-scripts]             Object.callbackFromNative (http://192.168.2.3:8100/cordova.js:293:52) at processMessage
[app-scripts]             (http://192.168.2.3:8100/cordova.js:1114:17) at processMessages (http://192.168.2.3:8100/cordova.js:1137:9)
[app-scripts]             at http://192.168.2.3:8100/build/vendor.js:130322:26 at t.invoke
[app-scripts]             (http://192.168.2.3:8100/build/polyfills.js:3:14976) at r.run
[app-scripts]             (http://192.168.2.3:8100/build/polyfills.js:3:10143) at http://192.168.2.3:8100/build/polyfills.js:3:20242
[app-scripts]             at t.invokeTask (http://192.168.2.3:8100/build/polyfills.js:3:15660) at r.runTask
[app-scripts]             (http://192.168.2.3:8100/build/polyfills.js:3:10834)

这是我的配置.xml

<?xml version='1.0' encoding='utf-8'?>
<widget id="cn.bookheart.app" version="0.0.2" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
...
<content original-src="index.html" src="http://192.168.2.3:8100" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
...
<platform name="android">
<allow-intent href="market:*" />
<preference name="AndroidLaunchMode" value="singleTask" />
<preference name="android-build-tool" value="gradle" />
...
</platform>

这是我的包.json

{
"name": "example",
"version": "0.0.2",
"homepage": "http://example.com/",
...

我尝试重新安装安卓平台,然后更新版本,但这是相同的错误。

请确保在使用ionic build cordova android发布之前构建了 Ionic。

release-cordova命令只构建科尔多瓦项目(不是 Ionic(。

相关内容

  • 没有找到相关文章

最新更新