X

Geertjan's Blog

  • July 9, 2015

Android Release APK via Cordova in NetBeans IDE (Part 2)

Geertjan Wielenga
Product Manager

Got some notes from my colleague JB Brock on yesterday's blog entry:

  • The process you describe will build the release apk, but if you
    click on the Run icon in NB, it will use the sim-android ant target
    and that is still defaulted to debug.  It does not run the release
    apk on your device unless you add the --release to the sim-android
    target as well.

  • When you set the --release to the sim-android target, it does indeed
    create the release apk, but it fails to launch on the device if you don't have the proper certificates installed.

    ERROR: Failed to launch application on device: ERROR: Failed to
    install apk to device:     pkg:
    /data/local/tmp/android-release-unsigned.apk

    Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]



    So, while you can build it with --release, you cannot deploy it
    unless you have the proper keys setup.  That is another thing to
    look into.

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.Captcha