Blog

December 2014 articles

Renaming a published Android App from CordovaApp to your App's project name

Posted: Tuesday 16th December, 2014 - 10:47pm
Author: James Griffiths

Here's an interesting quirk when using the Ionic framework (version 1.2.13) with Cordova PhoneGap (version 4.1.2) to create an Android App build. You run the following command:

ionic build --release android

And once the build process has successfully completed the CLI displays the following output:

BUILD SUCCESSFUL
Total time: 8 seconds
Built the following apk(s):
    /Path-to-your-project/platforms/android/ant-build/CordovaApp-release-unsigned.apk

The only problem? The built apk file is named as CordovaApp and NOT as the name of your project.

Resolving this involves a few steps to work through...

Read more...

MacOS Android publishing with Intel HAXM x86 hardware acceleration error

Posted: Sunday 14th December, 2014 - 10:38pm
Author: James Griffiths

There you are ready to publish your PhoneGap App to your Android Handset with the following command:

cordova run android --device

Or, if you're using the Ionic framework CLI instead:

ionic run android

Only to be presented with the following error message AFTER being informed that the build was successful:

emulator: ERROR: x86 emulation currently requires hardware acceleration!
Please ensure Intel HAXM is properly installed and usable.
CPU acceleration status: HAX is not installed on this machine (/dev/HAX is missing).

Resolving this is, thankfully, quite simple...

Read more...

Resolving Android versionCode float type publishing error with PhoneGap

Posted: Sunday 7th December, 2014 - 10:02pm
Author: James Griffiths

There you are ready to build your Android project - Cordova PhoneGap, Ionic Framework, Ant and the Android SDK are all successfully installed and configured correctly - you've opened up your command line and typed out the following instruction:

ionic build android

You press Enter and wait for the command to run only to be greeted with a failed build message akin to the following...

Read more...
Top