function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Isias jesualdo Flores AlvaradoIsias jesualdo Flores Alvarado 

Error [Hybrid app for Android]

Hello everyone

I'm testing the salesforce sdk to create hybrid applications for Android.
I have installed the Android SDK, Apache Ant, Git and Cordova.

The target is 19 (Kitkat).

I was compiling my first app (wich is a hybrid_local application), but the build is failed.


Error in CMD

Does anyone know how to fix the error?
Thank you so much
Gaurav NirwalGaurav Nirwal
Try this command
The command ""C:\Users\Sahar\AppData\Roaming\npm\node_modules\vs-mda\vs-cli" build --platform "Windows Phone" --configuration "Debug" --projectDir . --projectName "TestApps" --language "en-US" --buildServerUrl "" --buildTarget "PhoneDevice"" exited with code 1.
akhilesh_sfdcakhilesh_sfdc
Mobile SDK did have some issues for building Android apps on windows. We are going to fix that soon in a patch. You can join the Mobile SDK Google+ community for more updates: https://plus.google.com/u/0/communities/114225252149514546445 (http://​https://plus.google.com/u/0/communities/114225252149514546445)
Kevin HawkinsKevin Hawkins
When you say "I was compiling", what command specifically did you run to get that error?
Isias jesualdo Flores AlvaradoIsias jesualdo Flores Alvarado
Hi. Thank you so much for your help.

I used the command "cordova build". Is there any other commands?
Thank you.

(I also followed the advice of Matthews and did not get a good result).
 
Kevin HawkinsKevin Hawkins
We do not currently support 'cordova build' in the Mobile SDK.  You have to build your hybrid project from within your IDE.
Isias jesualdo Flores AlvaradoIsias jesualdo Flores Alvarado
Hello

Thank you so much for your help. I tried this one.
I used Eclipse to run the sample app in the Android SVG, but i found that mistakes:

User-added image
¿What can I do?

Thank you so much.
Kevin HawkinsKevin Hawkins
You may want to try updating your forcedroid package to the latest (2.3.1) and try again.  We made some fixes that may help out with Windows-based configuration issues.