App Export Wizard

Hello,

I have problem. When I try to export any project for more devices from Eclipse Luna, it shows me a message

Package Manager: Problem building app package. See console for details.
======================================================
BUILD: C:\Program Files\Java\jre1.8.0_31\bin\java -Dfile.encoding=UTF-8 ..............
BUILD: Complete

... and there's no project.iq file. It makes only TEMP folder with more PRG files but no IQ file. When I set the project for one device (D2 in my case) console shows the same error message but it makes IQ file (I think, it is corrupted, it has only 4kB).


EDIT: I found, it makes described problem when I have the watchface where I set the PROPERTIES-CONNECTIQ-ERMISSIONS in Eclipse for "Steps"
  • Hi Ken,

    I am not sure If I understand it. I can copy the line from Eclipse to standard CMD and it will make an IQ file for me?

    Thanks


    You need to set the pat for the ConnectIQ bin directory first.

    Then I copied the top Build Line from the console from when the App Export Wizard Failed.

    Here's the complete console output.

    ======================================================
    BUILD: C:\Program Files\Java\jdk1.7.0_45\bin\java -Dfile.encoding=UTF-8 -Dapple.awt.UIElement=true -classpath C:\Program Files\Java\jdk1.7.0_45\lib\tools.jar;C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\monkeybrains.jar; com.garmin.monkeybrains.Monkeybrains -e -a C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\api.db -i C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\api.debug.xml -o C:\Users\Rog\Garmin\MRunApp.iq -z C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources\resources.xml;C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources-epix\resources.xml;C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources-fenix3\resources.xml;C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources-fr920xt\resources.xml;C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources-vivoactive\resources.xml -m C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\manifest.xml -u C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\devices.xml -p C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\projectInfo.xml C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\AlertPicker.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MO2Sensor.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunApp.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunDelegate.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunMenuDelegate.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunPersist.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunView0.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunView1.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunView2.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunView3.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunViewPair.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\ViewAlert.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\ViewSave.mc
    BUILD: Complete
    Package Manager: Problem building app package. See console for details.
    ======================================================
    BUILD: C:\Program Files\Java\jdk1.7.0_45\bin\java -Dfile.encoding=UTF-8 -Dapple.awt.UIElement=true -classpath C:\Program Files\Java\jdk1.7.0_45\lib\tools.jar;C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\monkeybrains.jar; com.garmin.monkeybrains.Monkeybrains -a C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\api.db -i C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\api.debug.xml -o C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\bin\MRunApp.prg -z C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources\resources.xml;C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources-epix\resources.xml;C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources-fenix3\resources.xml;C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources-fr920xt\resources.xml;C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources-vivoactive\resources.xml -m C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\manifest.xml -u C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\devices.xml -p C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\projectInfo.xml C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\AlertPicker.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MO2Sensor.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunApp.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunDelegate.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunMenuDelegate.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunPersist.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunView0.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunView1.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunView2.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunView3.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunViewPair.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\ViewAlert.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\ViewSave.mc
    BUILD: Complete


    Also, in my case, I had to add the 2 sets of double quotes around the java paths before pasting that long string to a command line prompt because those paths had spaces in the path names. So the following was the exact command prompt entries to get it to build the .iq file

    It works from the command line but not from inside Eclipse. I still get the "Package Manager: Problem building app package. See console for details." error in Eclipse.

    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.

    C:\Users\Rog>set PATH=C:\Users\Rog\Documents\ConnectIQ_SDK_1_1_3\bin

    C:\Users\Rog>PATH
    PATH=C:\Users\Rog\Documents\ConnectIQ_SDK_1_1_3\bin

    C:\Users\Rog>"C:\Program Files\Java\jdk1.7.0_45\bin\java" -Dfile.encoding=UTF-8 -Dapple.awt.UIElement=true -classpath "C:\Program Files\Java\jdk1.7.0_45\lib\tools.jar";C:
    \Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\monkeybrains.jar; com.garmin.monkeybrains.Monkeybrains -e -a C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\api.db -i
    C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\api.debug.xml -o C:\Users\Rog\Garmin\MRunApp.iq -z C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources\resourc
    es.xml;C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources-epix\resources.xml;C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources-fenix3\resources.xml;C:\
    Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources-fr920xt\resources.xml;C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources-vivoactive\resources.xml -m C:\
    Users\Rog\Documents\Eclipse7\workspace\MRunApp\manifest.xml -u C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\devices.xml -p C:\Users\Rog\Documents\connectiq-sdk-win-
    1.1.3\bin\projectInfo.xml C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\AlertPicker.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MO2Sensor.mc C:
    \Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunApp.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunDelegate.mc C:\Users\Rog\Documents\Eclipse7
    \workspace\MRunApp\source\MRunMenuDelegate.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunPersist.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\so
    urce\MRunView0.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunView1.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunView2.mc C:\Users\Rog
    \Documents\Eclipse7\workspace\MRunApp\source\MRunView3.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunViewPair.mc C:\Users\Rog\Documents\Eclipse7\workspa
    ce\MRunApp\source\ViewAlert.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\ViewSave.mc

    C:\Users\Rog>
  • Former Member
    Former Member over 10 years ago
    You need to set the pat for the ConnectIQ bin directory first.


    This isn't actually necessary because all the paths in the command are absolute. If you add the SDK's bin directory to your path you can use "monkeyc" then just copy all of the command options (starting with the -e in the example Roger posted) but that's getting a bit off topic.

    It works from the command line but not from inside Eclipse. I still get the "Package Manager: Problem building app package. See console for details." error in Eclipse.


    To clarify, you're able to generate an .iq file from command line running the same command Eclipse is printing to console but the wizard in Eclipse is failing? I've seen errors not get propagated to the UI before but never something like this happening. I'll file a ticket to investigate this further as I'm not sure the best way to attack it right now. Would you be willing to send the project to [email][email protected][/email] to see if we can reproduce the behavior? Thanks for your help in reporting the issue Roger.
  • I tested as you both described but no IQ file here for any project. :/ I don't udenrstand it because second PC works fine.
  • Former Member
    Former Member over 10 years ago
    I am having the same problem, I copied what was in the console from Eclipse and there were several spots that were missing the necessary quotation marks for file paths that had spaces in their names. Once I pasted it into the command prompt and placed the quotes in the right places it built just fine.
  • I don't know why but now, without any updates on the PC, I can't run a project in simulator, too. When I try to "Run-Run configuration" and choose any project in PC, it shows me a message "Aborting launch due to failed build" (but the project is OK - when i tried it on other PC, it runs ok). The SDK samples returned me the same error message. Do you have any tips where could be the problem? I can't find a solution for this problem. It looks it is a conflict with some app on the PC but I cant find the "wrong" app. :confused:
  • I tested many things but the app still shows me only: "Package Manager: Problem building app package. See console for details." but there's no detail and I am not able to export the app.iq file on my primary PC. When I copied the project to other pc, it works ok.

    I deleted all data (including Eclipse files) and still the same with new "install". Please, do you have any tips? It is so annoying to must copy the project to other PC for export.


    EDIT: I tested to turn off some security apps on that PC but with the same result. So, it isn't a conflict with security apps.
  • I'm running into this issue myself, and I share an office with Ken, so he's seen it with his own eyes. We've got a case open to fix it, and it's under investigation. I'll keep pestering Ken to get it taken care of. :p
  • I am also getting this problem. I've tried 4 PC's (2x Windows 7, 1x Windows 8, 1x Windows 10) and only one of the Windows 7 is getting the error. The project builds and runs on the other three, and if I execute via the command line no errors.

    Any ideas?
  • App Export Wizard

    Hello,

    I had the same issue.
    I could finally get the App Export Wizard to work by reducing to one ( french) the number of languages to be included in the export package tool.
  • unknown code 1

    I tested it again with new SDK but I have still the same message on one PC. Second PC with the same system (Win7) has no problem. The first one still showing me this:

    "Package Manager: Problem building app package. See console for details."

    I tested to search updates for Eclipse and now I see this error message:

    "The compiler returned an unknown exit code: 1"


    It makes me an TEMP folder on my drive which contains prg anf xml files but there's no .IQ file