D
D
dark_ruby2015-02-21 02:08:37
Android
dark_ruby, 2015-02-21 02:08:37

How to compile to apk in phonegap?

I'm trying to build a simple application a la hello world in phonegap

phonegap create hello com.example.hello HelloWorld
phonegap cordova platform add android

I have Java and the android SDK installed, so everything seems to be working up to this point ..
phonegap build android
in theory, the APK should appear in platform / android / bin but it is not there ..
here is the output of the build command
$ phonegap build android
[phonegap] executing 'cordova build android'...
[phonegap] completed 'cordova build android'

when I compile for firefoxOS, for example, then package.zip appears, but for android it doesn’t ...

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Q
Quickerz, 2015-04-04
@Quickerz

Usually, ant is used for final assembly and signing of applications. Ant release is executed in the platform/android folder, and the ant.properties file (the name may differ, it can be defined in the config file in the same folder) specifies the path to the key file and the name of the repository. When building, ant will ask for the password for the key file and put the finished application in platform/android/bin under the name AppName-release.apk

A
ALISX, 2016-06-09
@ALISX

Look in the platform\ouptut folder.

V
vr5, 2016-11-09
@vr5

The built app is in platform/android/build/outputs/apk

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question