0

Thread number onehundredeleven. I already tried the recommendations from Where is APK file after "phonegap build android" command?, Where is APK file stored after phonegap android build is successful?, Where is my apk file for my android application? (via eclipse), Where is the APK file in PhoneGap after compile it? and Location of .apk file, but the mystery remains unsolved:

After successfully (= without error message) executing sencha app build native and/or phonegap build android, I can't find an APK on my computer.

X:\mySenchaTouchApp\phonegap>phonegap version
4.2.0-0.24.2

X:\mySenchaTouchApp\phonegap>phonegap build --release
[phonegap] executing 'cordova build --release'...
[phonegap] completed 'cordova build --release'

The folders X:\mySenchaTouchApp\phonegap\platforms\android\bin and X:\mySenchaTouchApp\phonegap\platforms\android\ant-bin did not exist, I created both, ran phonegap build again, but both are still empty.

A windows search for *.apk in the project directory came up blank, searching over my whole computer only spotted some sample apps in C:\Users\alexander\AppData\Local\Android\sdk\samples\android-19\legacy and a downloaded apk file in my Downloads folder.

It does not work with --release, without --release, with android, without with android, with local or without local. It works fine if I do a remote build.

I find it confusing that no error is thrown and no apk is built, is it just me?

Is there a hidden switch anywhere?

Community
  • 1
  • 1
Alexander
  • 19,906
  • 19
  • 75
  • 162

1 Answers1

1

Try to run this instead

cordova build android --release

and it should generate the apk in platforms\android\ant-build

It seems there are many issues when using the phonegap cli (behaviour varying on each version) that's why I now stick to cordova cli only.

QuickFix
  • 11,661
  • 2
  • 38
  • 50