建立在PhoneGap的3.x的命令行版本的Android APK [英] Build android release apk on Phonegap 3.x CLI
问题描述
如何建立一个Android应用程序在本地使用PhoneGap的3.X CLI,准备释放?我检查项目的平台/ Android的目录中生成的bin文件夹中,只有已的.debug的APK。
顺便说一句,我用这个命令:的PhoneGap本地构建Android
的答案<找到的一部分href="http://docs.phonegap.com/en/3.3.0/guide_platforms_android_tools.md.html#Android%20Command-line%20Tools">here,在PhoneGap的文档。完整的过程是这样的:
-
打开命令行窗口,并转到/路径/要/你/项目/ 平台/安卓/科尔多瓦
-
运行
打造--release
。这在/路径创建一个未签名的版本APK /来/你/项目/ 平台/安卓/箱文件夹,名为YourAppName释放-unsigned.apk。 -
注册和使用说明,在 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:
Open a command line window, and go to /path/to/your/project/platforms/android/cordova.
Run
build --release
. This creates an unsigned release APK at /path/to/your/project/platforms/android/bin folder, called YourAppName-release-unsigned.apk.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的命令行版本的Android APK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!