Google Play不接受Apache Cordova [英] Google Play won't accept Apache Cordova

查看:135
本文介绍了Google Play不接受Apache Cordova的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最初尝试使用 AIDE for PhoneGap ,并在我将应用程式提交给Google Play后,我收到以下讯息...

I originally tried using AIDE for PhoneGap and after I submitted my app to Google Play I got the following message...

APP REJECTED

您的应用程式提交内容遭到拒绝,因为它包含安全性漏洞,违反了我们的危险产品政策。如果上传的APK是应用程式更新,则Google Play仍会显示旧版本。有关此拒绝的详细信息已通过电子邮件发送给帐户所有者。

APP REJECTED
Your app submission has been rejected because it contains security vulnerabilities, which is a violation of our dangerous products policy. If the uploaded APK was an app update, the previous version is still available on Google Play. More details about this rejection have been emailed to the account owner.

然后我继续使用 Apache Cordova的 Hello World例子,在新的npm安装后,收到以下消息(在这一点上,我没有检查完整的错误,看看什么版本的Cordova被reqjected )...

I then went ahead and used Apache Cordova's Hello World example after a fresh npm install and received the following message (At this point I did not check the full error to see what version of Cordova was reqjected)...

安全警报

此应用程式是建立在Apache Cordova版本安全漏洞。您必须到2015年8月31日才能解决此问题。有关详情,请查看快讯页面。

Affects APK版本6。

Security alert
This app is built on a version of Apache Cordova that contains security vulnerabilities. You have until Aug 31, 2015 to resolve this. Please see the alerts page for more information.
Affects APK version 6.

我最后一次尝试是使用Adobe的 PhoneGap Build (在阅读Google Play上的完整警报后...请将您的应用迁移到Apache Cordova v。 3.5.1或更高版本。)和Google Play仍然给出上面的消息。 BTW我的应用在Android上运行良好,我只是没有被接受到Google Play。

My last attempt was using Adobe's PhoneGap Build as a work around (after reading the full alert on Google Play... "Please migrate your app to Apache Cordova v.3.5.1 or higher as soon as possible.") and Google Play still gave the message above. BTW My app runs fine on Android I just haven't got it accepted into Google Play.

我昨天晚上一直在寻找一个解决方案,我没有遇到任何问题,我更愿意使用Adobe的 PhoneGap Build 比进入本机Java。

I've been searching for a solution since last night and I haven't came across anything, and I would much rather prefer to use Adobe's PhoneGap Build than going into native Java.

任何人都可以帮助?我不知道为什么这些不为我工作。

Can anyone help? I don't know why these are not working for me.

运行 npm info cordova 后,版本号为 6.0.0 cordova.js文件说它的版本是 5.1.0 。 PhoneGap Desktop没有给我一个cordova文件,但 npm info phonegap 版本说它是 5.4.1

After running npm info cordova It says the version is 6.0.0 but the cordova.js file says it's version 5.1.0. PhoneGap Desktop doesn't give me a cordova file, but npm info phonegap version says it's 5.4.1.

我将旧cordova.js文件更新为最新的v5.1.0,但尚未找出如何替换 cordova- 2.9.0.jar 。到版本v5.4.1

I updated the old cordova.js file to the most recent one being v5.1.0, but haven't figured out how to replace cordova-2.9.0.jar. to version v5.4.1

注意:即使使用cordova.js v5.1.0,仍然无法在Google Play上接受。

NOTE: Even with cordova.js v5.1.0 it's still not being accepted on Google Play.

这是我的config.xml(对于PhoneGap Build)...

Here's my config.xml (for PhoneGap Build)...

<?xml version='1.0' encoding='utf-8'?>
<widget xmlns = "http://www.w3.org/ns/widgets"
  xmlns:gap   = "http://phonegap.com/ns/1.0"
  id          = "com.michael.hellp"
  version     = "1.0.0">
  <name>
    Hello world
  </name>
  <description>
    Hello world description
  </description>
  <author href="http://build.phonegap.com/" email="name@website.com">
    Bruce Lee
  </author>

  <content src="index.html" />

  <icon src="icon.png" />
  <icon gap:platform="android" gap:qualifier="ldpi" src="www/res/icon/android/icon-36-ldpi.png" />
  <icon gap:platform="android" gap:qualifier="mdpi" src="www/res/icon/android/icon-48-mdpi.png" />
  <icon gap:platform="android" gap:qualifier="hdpi" src="www/res/icon/android/icon-72-hdpi.png" />
  <icon gap:platform="android" gap:qualifier="xhdpi" src="www/res/icon/android/icon-96-xhdpi.png" />
  <icon gap:platform="android" src="www/res/icon/android/icon-96-xhdpi.png" />
  <icon gap:platform="blackberry" src="www/res/icon/blackberry/icon-80.png" />
  <icon gap:platform="blackberry" gap:state="hover" src="www/res/icon/blackberry/icon-80.png" />
  <icon gap:platform="ios" height="57" src="www/res/icon/ios/icon-57.png" width="57" />
  <icon gap:platform="ios" height="72" src="www/res/icon/ios/icon-72.png" width="72" />
  <icon gap:platform="ios" height="114" src="www/res/icon/ios/icon-57-2x.png" width="114" />
  <icon gap:platform="ios" height="144" src="www/res/icon/ios/icon-72-2x.png" width="144" />
  <icon gap:platform="webos" src="www/res/icon/webos/icon-64.png" />
  <icon gap:platform="winphone" src="www/res/icon/windows-phone/icon-48.png" />
  <icon gap:platform="winphone" gap:role="background" src="www/res/icon/windows-phone/icon-173-tile.png" />

  <preference name="orientation" value="default" />
  <preference name="target-device" value="universal" />
  <preference name="fullscreen" value="true" />
</widget>


推荐答案

原来我需要做的PhoneGap Build在我的 config.xml 文件中添加这行代码。

Turns out all I needed to do with PhoneGap Build is add this line of code in my config.xml file.

<preference name="phonegap-version" value="cli-5.2.0" />

现在我的配置看起来像这样。

So here's what my config looks like now.

<?xml version='1.0' encoding='utf-8'?>
<widget xmlns = "http://www.w3.org/ns/widgets"
  xmlns:gap   = "http://phonegap.com/ns/1.0"
  id          = "com.michael.hellp"
  version     = "1.0.0">
  <name>
    Hello world
  </name>
  <description>
    Hello world description
  </description>
  <author href="http://build.phonegap.com/" email="name@website.com">
    Bruce Lee
  </author>

  <content src="index.html" />

  <icon src="icon.png" />
  <icon gap:platform="android" gap:qualifier="ldpi" src="www/res/icon/android/icon-36-ldpi.png" />
  <icon gap:platform="android" gap:qualifier="mdpi" src="www/res/icon/android/icon-48-mdpi.png" />
  <icon gap:platform="android" gap:qualifier="hdpi" src="www/res/icon/android/icon-72-hdpi.png" />
  <icon gap:platform="android" gap:qualifier="xhdpi" src="www/res/icon/android/icon-96-xhdpi.png" />
  <icon gap:platform="android" src="www/res/icon/android/icon-96-xhdpi.png" />
  <icon gap:platform="blackberry" src="www/res/icon/blackberry/icon-80.png" />
  <icon gap:platform="blackberry" gap:state="hover" src="www/res/icon/blackberry/icon-80.png" />
  <icon gap:platform="ios" height="57" src="www/res/icon/ios/icon-57.png" width="57" />
  <icon gap:platform="ios" height="72" src="www/res/icon/ios/icon-72.png" width="72" />
  <icon gap:platform="ios" height="114" src="www/res/icon/ios/icon-57-2x.png" width="114" />
  <icon gap:platform="ios" height="144" src="www/res/icon/ios/icon-72-2x.png" width="144" />
  <icon gap:platform="webos" src="www/res/icon/webos/icon-64.png" />
  <icon gap:platform="winphone" src="www/res/icon/windows-phone/icon-48.png" />
  <icon gap:platform="winphone" gap:role="background" src="www/res/icon/windows-phone/icon-173-tile.png" />

  <preference name="orientation" value="default" />
  <preference name="target-device" value="universal" />
  <preference name="fullscreen" value="true" />
  <preference name="phonegap-version" value="cli-5.2.0" />
</widget>

这篇关于Google Play不接受Apache Cordova的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆