PhoneGap构建发布错误

时间:2015-09-22 07:21:29

标签: android cordova phonegap-plugins phonegap-build onsen-ui

我刚刚完成了我的第一个PhoneGap应用程序,现在是时候将它发布到Google Play上了。

我使用以下教程创建了一个android密钥库文件:Android Signing GITHUB

我将它添加到Adobe PhoneGap Build网站,它构建了我的应用程序,日志中没有任何错误。这是该应用程序的调试版本,在Android手机上测试了apk,它没有任何问题。

但是,在添加密钥文件后,在手机上重新安装密码文件后,它突然停止工作。

NetworkError: A Network error occured.

这种情况发生了。我有相同的config.xml文件,我没有指定任何权限(所以它要求所有权限,但我想在看到应用程序在发布模式下工作后才删除)

有什么问题?为什么签署该应用会改变其在Android上的工作方式?

我的config.xml如下所示:

<?xml version='1.0' encoding='utf-8'?>
  <widget xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0" id="testapp" versionCode="1" version="1.0.0">
    <name>Test App</name>
    <description>
      This is a test application
    </description>
    <author email="support@mycompany.com" href="http://mycompany.com">
      My Company
    </author>

    <preference name="orientation" value="default"/>
    <preference name="fullscreen" value="true"/>

    <icon src="icon.png"/>
    <gap:splash src="splash.png" />

    <gap:plugin name="org.apache.cordova.inappbrowser" />
    <content src="index.html" />

    <access origin="*" />
    <engine name="android" spec="^4.0.2" />
    <plugin name="InAppBrowser" value="CDVInAppBrowser" />
    <engine name="ios" spec="^3.8.0" />

</widget>

PhoneGap日志:

-package:
  [apkbuilder] Current build type is different than previous build: forced apkbuilder run.
  [apkbuilder] Creating TestApp-release-unsigned.apk for release...

-post-package:

-release-prompt-for-password:

-release-nosign:
   [echo] No key.store and key.alias properties found in build.properties.
   [echo] Please sign /project/bin/TestApp-release-unsigned.apk manually
   [echo] and run zipalign from the Android SDK tools.
   [propertyfile] Creating new property file: /project/bin/build.prop
   [propertyfile] Updating property file: /project/bin/build.prop
   [propertyfile] Updating property file: /project/bin/build.prop
   [propertyfile] Updating property file: /project/bin/build.prop

-release-sign:

-post-build:

release:

BUILD SUCCESSFUL
Total time: 16 seconds
debug: Starting application signing
.....
jar signed.

Warning: 
No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2043-02-07) or after any future revocation date.

debug: Finished application signing
Verifying alignment of /project/bin/TestApp-release.apk (4)...
....
Verification succesful

logcat的:

/ dev / log / system

的开头

E / Vold(574):读取配置时出错(没有这样的文件或目录)......仍然继续

E / ConnectivityService(1700):忽略protectedNetwork 14

E / MobileDataStateTracker(1700):默认:忽略功能请求,因为无法获取PhoneService

E / MobileDataStateTracker(1700):默认:无法启用APN类型&#34;默认&#34;

E / LocationManagerService(1700):找不到地理编码提供程序

E / LocationManagerService(1700):找不到FusedProvider。

E / LocationManagerService(1700):找不到地理围栏提供商

E / ConnectivityService(1700):意外的mtu值:android.net.EthernetDataTracker@3294037c

E / VoldConnector(1700):NDC命令{3 volume mount / storage / sdcard}花了太长时间(1210ms)

E / VoldConnector(1700):NDC Command {4 asec list}花了太长时间(2000ms)

--------- / dev / log / main

的开头

0 个答案:

没有答案