"Aborting launch due to failed build. " Message

Hi,

When I try and launch the simulator, I get the message "Aborting launch due to failed build." The project successfully builds (I get the "BUILD: Complete" message), but running generates this error.

The bizarre thing, is that I have 6 projects are they all give the same message. Even more bizarre, is all 6 projects on other PC's work perfectly.

I've tried running the build in the command-line and no warnings or errors also appear.

I am really keen to get my main PC running and testing, anybody any ideas?

Cheers
Chris
  • Former Member
    Former Member
    OSX also having this issue. . .

    Hi,

    I'm running OSX Yosemite with Eclipse Mars.


    I am also running into this problem. . my output in the Eclipse Window looks like this:

    ======================================================
    BUILD: /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Dfile.encoding=UTF-8 -Dapple.awt.UIElement=true -classpath /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/tools.jar:/Users/USER/Development/connectiq-sdk-mac-1.1.4/bin/monkeybrains.jar: com.garmin.monkeybrains.Monkeybrains -a /Users/USER/Development/connectiq-sdk-mac-1.1.4/bin/api.db -i /Users/USER/Development/connectiq-sdk-mac-1.1.4/bin/api.debug.xml -o /Users/USER/Documents/Eclipseworkspace/testface1/bin/testface1.prg -z /Users/USER/Documents/Eclipseworkspace/testface1/resources/resources.xml:/Users/USER/Documents/Eclipseworkspace/testface1/resources/layouts/layout.xml -m /Users/USER/Documents/Eclipseworkspace/testface1/manifest.xml -u /Users/USER/Development/connectiq-sdk-mac-1.1.4/bin/devices.xml -p /Users/USER/Development/connectiq-sdk-mac-1.1.4/bin/projectInfo.xml /Users/USER/Documents/Eclipseworkspace/testface1/source/testface1View.mc /Users/USER/Documents/Eclipseworkspace/testface1/source/testface1App.mc
    BUILD: Complete
    ======================================================
    BUILD: /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Dfile.encoding=UTF-8 -Dapple.awt.UIElement=true -classpath /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/tools.jar:/Users/USER/Development/connectiq-sdk-mac-1.1.4/bin/monkeybrains.jar: com.garmin.monkeybrains.Monkeybrains -a /Users/USER/Development/connectiq-sdk-mac-1.1.4/bin/api.db -i /Users/USER/Development/connectiq-sdk-mac-1.1.4/bin/api.debug.xml -o /Users/USER/Documents/Eclipseworkspace/testface1/bin/testface1.prg -z /Users/USER/Documents/Eclipseworkspace/testface1/resources/resources.xml:/Users/USER/Documents/Eclipseworkspace/testface1/resources/layouts/layout.xml -m /Users/USER/Documents/Eclipseworkspace/testface1/manifest.xml -u /Users/USER/Development/connectiq-sdk-mac-1.1.4/bin/devices.xml -p /Users/USER/Development/connectiq-sdk-mac-1.1.4/bin/projectInfo.xml /Users/USER/Documents/Eclipseworkspace/testface1/source/testface1View.mc /Users/USER/Documents/Eclipseworkspace/testface1/source/testface1App.mc -d square_watch_sim
    BUILD: Complete
    Aborting launch due to failed build.


    When I run this code in the mac console (i.e. bash) I get no errors or output - after a few minutes it just shows me the next prompt. I also don't see anything in the ConnectIQ simulator either way.

    I can run the simulator just fine from Eclipse and form the command line, and I can run monkeydo from the commandline as well. . .I wish I had an error message to go on!

    Any ideas?
  • Just in case it would help, I've also noticed I get "Unknown Status Code" and a failure when I run the Build for Device Wizard; but again a successful build on the Console window.
  • Former Member
    Former Member
    SOLVED! Rebooted.

    In my case, I simple rebooted my MAC OSX and everything works. I am guessing this was a result of config changes (Like the PATH) that had not been implemented throughout the system.

    At least in my case ;-)
  • Former Member
    Former Member
    Hi,
    just to add that also my eclipse has been stuck with the same error since days. This morning worked just 1 time and now I am stuck again.
    I then tried upgrading JDK from 1.7 to 1.8 but nothing.

    Unfortunately for me monkeydo workaround doesn't work so I am complitely stuck :(

    I have Eclipse Mars Release (4.5.0)
    JDK 1.7.080
    JDK 1.8.060
  • I have occasionally received that error. I found that if I change something in one of the files (like edit a comment) and then save it that it usually makes the problem go away.
  • Same issue here. I get that error from inside Eclipse, but I'm able to compile with monkeyc and launch monkeydo from the console and the app runs in the simulator.

    It's a bit annoying to change the monkeyc command line bat file every time I add a new resource or source file to the project, and reading the warnings and error messages on the windows cmd console is not cute either.
    Any idea why this happens?

    Thanks
  • I kept getting it too once I upgraded to El Capitan.
    The only respite has been
    1) try and try again. It works on 2 or 3 try most times
    2) kill simulator. Rm - rf $TMPDIR\Garmin
    3) kill eclipse
    4) reboot.
  • I'm getting this error 100% of the time four different projects. Brandon, would you like me to send you the sources?

    Travis
  • I'm getting this error 100% of the time four different projects. Brandon, would you like me to send you the sources?

    Travis


    I have also big problems on MAC. Sometime help erase BIN directory and run and run again (one of fifty exports is good).. I wrote about it here:
    https://forums.garmin.com/showthread.php?332528-Connect-IQ-1-2-1-SDK-Available!
  • I'm able to reproduce this issue myself (I seem to be the one that runs into it the most, while Ken rarely encounters the problem). Travis, if you'd like to send along the source, that may help, especially if it's reproducible here with your projects. The best work-around, as mentioned in some other threads, is to run the build command from the Eclipse console in the terminal/command prompt.