Phonegap / Cordova - 构建Apk [英] Phonegap / Cordova - Build Apk

查看:150
本文介绍了Phonegap / Cordova - 构建Apk的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道如何生成apk?

Does anyone know how to generate the apk?

我正在尝试使用Phonegap / Cordova CLI构建我的应用程序的apk。我需要一些教程或有关它的信息。

I'm trying to build the apk of my application with Phonegap / Cordova CLI. I need some tutorials or information about it.

推荐答案

检查是否安装了构建APK所需的所有内容首先运行此命令:

To check whether or not you have everything installed that is required to build an APK first run this command:

$ cordova requirements

这应该给出类似于以下结果的东西:

This should give something similar to the following result:

Requirements check results for android:
Java JDK: installed .
Android SDK: installed
Android target: installed android-19,android-21,android-22,android-23,Google Inc.:Google APIs:19,Google Inc.:Google APIs (x86 System Image):19,Google Inc.:Google APIs:23
Gradle: installed

您需要确保安装了最新的Java JDK和Android SDK。您还需要确保Java在您的计算机的PATH中。

You need to make sure that you have the latest Java JDK installed and the Android SDK. You will also need to make sure that Java is in you computer's PATH.

然后你可以运行这个命令:

Then you can run this command:

$ cordova build android

按照以下指南:

https://cordova.apache.org/docs/en/latest/guide/cli /

这篇关于Phonegap / Cordova - 构建Apk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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