【问题标题】:Updating salesforce Hybrid cordova app更新 Salesforce Hybrid cordova 应用程序
【发布时间】:2016-09-16 10:52:50
【问题描述】:

我对 Salesforce 混合移动应用程序开发有点陌生。

我有一个运行良好的混合应用程序。

但是最近上传APK到play store的时候,play store报错

Your APK has been rejected for containing security vulnerabilities, which violates the Malicious Behavior policy. The Alerts page has more information about how to resolve the issue. If you submitted an update, the previous version of your app is still live on Google Play.

经过分析,我发现我的android平台版本是3.6.x,这可能是拒绝的原因。

因此,我使用以下命令更新了现有 Salesforce Hybrid 应用程序的 cordova android 平台。

cordova platform update android

更新后android平台版本为5.2.2

Salesforce Mobile sdk 指南说要重新安装 salesforce 插件

所以,

cordova plugin remove com.salesforce

然后

cordova plugin add https://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin

但是,在重新添加插件时,它会给出以下消息

Plugin doesn't support this project's cordova-android version. cordova-android: 5.2.2, failed version requirement: 5.0.0
Skipping 'com.salesforce' for android

在 Eclipse 中再次运行项目会出现很多错误。

无法在此处指出具体问题。

感谢任何帮助。

提前致谢。

【问题讨论】:

标签: android cordova salesforce cordova-plugins hybrid-mobile-app


【解决方案1】:

您必须更新到 5.0.0 而不是 5.2.2,因为 Salesforce 插件是针对 5.0.0 版本的。

你可以在plugin.xml文件的engine标签中看到。

<engines> <engine name="cordova-android" version="5.0.0" /> <engine name="cordova-ios" version="4.2.0" /> </engines>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多