How to compile cordova project from visual studio (Hybrid App) to android / ios apk

I am trying to compile my hybrid Cordova application from visual studio to apk file

  • After deploying the project to Android / iOS, the project bin folder is still empty.
  • I am trying to download the www folder to build.phonegap.com, but I am getting an error.
  • What is the best and right way to compile a project (HTML, CSS, and JS) into an APK for Android and IOS?

Thanks Tom

Update:

I'm trying to build from a visual studio

this is my project folder enter image description here

When I try to create a project from a visual studio in Device mode, I get this error

enter image description here

+8
android ios visual-studio cordova multi-device-hybrid-apps
source share
2 answers

1- If you used the Ripple simulator as a target, nothing will be created in the bin folder. You need to switch the assembly configuration to โ€œdeviceโ€ so that the files are created

2 - There is nothing special in the www folder created by the Visual Studio template, and you should not have problems with PhoneGap Build. If you have errors, they come from your JS code

3 - To create binaries for Android using the extension for multiple Hybrid devices for Visual Studio, you should be fine just switching the build configuration to โ€œdeviceโ€ instead of the Ripple simulator. For iOS, you need to use the Remote Build and Simulation Agent for iOS (which requires a Mac, because iOS tools are NOT available for Windows, and you cannot generate the iOS binary directly on your Windows machine. Otherwise, you might consider using PhoneGap Build services

+19
source share

From the image, the error looks similar to the way I found out that my device is not recognized / not found.

This answer explains how to get the APK directly by installing the Release solution and only Building . > the project is rather trying to fully deploy the device. This is pretty much the same answer as mentioned in paragraph 3 above, just tested in the PhoneGap App solution.

0
source share

All Articles