建立在PhoneGap的3.x的命令行版本的Andr​​oid APK命令行、版本、PhoneGap、oid

2023-09-12 03:47:23 作者:Tempted(动心)

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

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

解决方案   

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

的答案here,在PhoneGap的文档。完整的过程是这样的:

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

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

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

感谢@LaurieClark的链接(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.