To create the Android release APK via Cordova in NetBeans IDE, you need to add the '--release' flag to the 'build-android' Ant target in 'nbproject/build.xml'. Click to enlarge the image below:
The first time you build the project, the 'create-android' target will be run. That uses the 'add' command on Cordova, creating the 'android-debug.apk' and 'android-debug-unaligned.apk'. Subsequent builds of the project will automatically call the 'build-android' target, which uses the 'build' command on Cordova, where you have added the '--release' switch, which will automatically create 'android-release-unsigned.apk'.