zipalign command not found for Android APK publishing
Developing Ionic Apps for Android solely from the command line? Receiving the following error when trying to run the zipalign utility?
-bash: zipalign: command not found
Assuming you're using a unix based OS here's how to fix this...
Creating a Google Play Developer account and uploading your first Cordova PhoneGap Android App
The beauty of being a developer in the second decade of the 21st century is the sheer range and diversity of platforms, tools and environments you can develop with and for. It's no exaggeration to say that, on this score, we really are spoiled for choice and nowhere does this hold truer than developing for the Android platform.
In this tutorial we're going to guide you through the following steps:
- Setting up a Google Play publisher account
- Generating, signing and optimising an APK file
- And, finally, uploading your APK file for distribution on Google Play...
Renaming a published Android App from CordovaApp to your App's project name
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:
Total time: 8 seconds
Built the following apk(s):
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...
Android directory naming convention caveat for PhoneGap Apps
MacOS Android publishing with Intel HAXM x86 hardware acceleration error
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:
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...
Enabling Android Developer Options on an Android handset
Ready to publish your PhoneGap App to your Android handset for testing? Developing on a Mac and struggling to get the handset registering on your machine? Read on...
Installing the Android SDK on Mavericks
Installing the Android SDK for Cordova PhoneGap mobile development can seem a little involved and challenging at first glance but in the following tutorial we're going to take you through how to do just that.