建立在PhoneGap的3.x的命令行版本的Andr​​oid APK [英] Build android release apk on Phonegap 3.x CLI

查看:117
本文介绍了建立在PhoneGap的3.x的命令行版本的Andr​​oid APK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何建立一个Android应用程序在本地使用PhoneGap的3.X CLI,准备释放?我检查项目的平台/ Android的目录中生成的bin文件夹中,只有已的.debug的APK。

顺便说一句,我用这个命令:的PhoneGap本地构建Android

解决方案
  

这是PhoneGap的3.0.x到3.3.x.对于PhoneGap的3.4.0及以下。高看

的答案<找到的一部分href="http://docs.phonegap.com/en/3.3.0/guide_platforms_android_tools.md.html#Android%20Command-line%20Tools">here,在PhoneGap的文档。完整的过程是这样的:

  1. 打开命令行窗口,并转到/路径/要/你/项目/ 平台/安卓/科尔多瓦

  2. 运行打造--release 。这在/路径创建一个未签名的版本APK /来/你/项目/ 平台/安卓/箱文件夹,名为YourAppName释放-unsigned.apk。

  3. 注册和使用说明,在 Android开发者官方文档对齐APK。

感谢@LaurieClark的链接(<一href="http://iphonedevlog.word$p$pss.com/2013/08/16/using-phonegap-3-0-cli-on-mac-osx-10-to-build-ios-and-android-projects/">http://iphonedevlog.word$p$pss.com/2013/08/16/using-phonegap-3-0-cli-on-mac-osx-10-to-build-ios-and-android-projects/),和谁后吧,博客,因为它让我在赛道上。

How can I build an android app locally using the Phonegap 3.x CLI, ready to release? I check the bin folder generated inside the platforms/android directory of the project, and only has .debug APKs.

By the way, I use this command: phonegap local build android

解决方案

This is for Phonegap 3.0.x to 3.3.x. For PhoneGap 3.4.0 and higher see below.

Found part of the answer here, at Phonegap documentation. The full process is the following:

  1. Open a command line window, and go to /path/to/your/project/platforms/android/cordova.

  2. Run build --release. This creates an unsigned release APK at /path/to/your/project/platforms/android/bin folder, called YourAppName-release-unsigned.apk.

  3. Sign and align the APK using the instructions at android developer official docs.

Thanks to @LaurieClark for the link (http://iphonedevlog.wordpress.com/2013/08/16/using-phonegap-3-0-cli-on-mac-osx-10-to-build-ios-and-android-projects/), and the blogger who post it, because it put me on the track.

这篇关于建立在PhoneGap的3.x的命令行版本的Andr​​oid APK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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