我对 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 中运行该项目会出现许多错误。
无法在此处查明具体问题。
感谢任何帮助。
提前致谢。
最佳答案
您必须更新到 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>
关于android - 更新 salesforce Hybrid cordova 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39529729/