Question

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!

Was it helpful?

Solution 2

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!

OTHER TIPS

You're doing it wrong. The build process has to be in the IDE, not in the HUB. Open the project in IDE(VS2012 in your case) by either clicking Open in IDE button in Hub or double clicking the Mkb file. Build and run your code in x86 first to create the necessary bin files for groups and then build it using GCC release compiler. After that you can either run it using GCC compiler to open the deploy tool(default action for VS2010 and VS2012 desktop version) or running deploy tool from external tools (VS2012 for windows phone) or by running the deploy tool target (in XCode) directly. You can instead use package, install and run button in the hub if you've already filled the neccessary info deploy tool asked you.

Honestly I don't have trust on Hub and like to do the development using old school method with IDE and deploy tool. It always works.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top