Search code examples
androidvisual-studio-2012buildapkmarmalade

Cannot create APK file using Marmalade


I'm using VS2012 and I'm trying to build my application for Android, but APK file is not created when I build the application.

I'm doing this process using the Marmalade Hub and the "Package, Install and Run" option. Build process works fine and I get no errores, but when I process on the "Package, Install and Run" button I get the following message:

Please Build before deploying. To build, click "Build" or click "Open in IDE" and build GCC ARM Debug.

The following picture shows this process:

Picture

Please help, I cannot advance on my project because of this situation!

Thanks!


Solution

  • I found the problem on the HUB that wasn't allowing me to run the "Package, Install and Run" process. For that matter, the actual problem was in the Package part of the process.

    For some reason, when you use VS2012 to develop and you haven't installed Windows Phone for VS2012, the default option for the HUB is to check for "Windows Phone 8 C++ Development" tool installation and if not present, block Package build for Android. I also note that I'm using Windows 7, so I cannot install Windows Phone for 2012 module.

    The solution I found was to simply configure Marmalade Hub correctly:

    1. Open Marmalade Hub.
    2. Press on Dependency Checker.
    3. Depency Checker should start with the IDE's and Compilers tab opened. If not, open IDE's and Compilers tab.
    4. Look for Windows Phone 8 C++ Development on the tab.
    5. Choose "Work Without IDE" on the options.
    6. Try to build the project again.

    Best!