I have been struggling for a couple of days creating an hybrid app with salesforce mobile sdk. I managed to execute some samples app in by cloning the saleseforce mobile sdk git repo and following these instructions: https://github.com/forcedotcom/SalesforceMobileSDK-Android/blob/master/hybrid/README.md.
I wanted to create a new app from scratch cause I need to import some plugins, I couldn't do it with the sample projects (cordova says they are not valid cordova project directories).
I followed several guides: http://paste.scsys.co.uk/465779
and other variants.... (I didn't save all the links)
I always receive that error when I build the project:
Running command: C:\Users\giovi\Desktop\testApp\TestApp\platforms\android\cordov a\build.bat Buildfile: C:\Users\giovi\Desktop\testApp\TestApp\platforms\android\build.xml -set-mode-check: -set-debug-files: -check-env: [checkenv] Android SDK Tools Revision 24.0.2 [checkenv] Installed at C:\Users\giovi\AppData\Local\Android\android-sdk -setup: [echo] Project Name: com.plugin.gcm.PushHandlerActivity [gettype] Project Type: Application -set-debug-mode: -debug-obfuscation-check: -pre-build: -build-setup: [getbuildtools] Using latest Build Tools: 21.1.2 [echo] Resolving Build Target for com.plugin.gcm.PushHandlerActivity... [gettarget] Project Target: Android 5.0.1 [gettarget] API level: 21 [echo] ---------- [echo] Creating output directories if needed... [echo] ---------- [echo] Resolving Dependencies for com.plugin.gcm.PushHandlerActivity... BUILD FAILED C:\Users\giovi\AppData\Local\Android\android-sdk\tools\ant\build.xml:577: ../../ external/cordova/framework resolve to a path with no project.properties file for project C:\Users\giovi\Desktop\testApp\TestApp\plugins\com.salesforce\src\andro id\libs\SalesforceSDK Total time: 0 seconds C:\Users\giovi\Desktop\testApp\TestApp\platforms\android\cordova\node_modules\q\ q.js:126 throw e; ^ Error code 1 for command: cmd with args: /s,/c,ant,debug,-f,C:\Users\giovi\Deskt op\testApp\TestApp\platforms\android\build.xml,-Dout.dir=ant-build,-Dgen.absolut e.dir=ant-gen ERROR building one of the platforms: Error: C:\Users\giovi\Desktop\testApp\TestA pp\platforms\android\cordova\build.bat: Command failed with exit code 1 You may not have the required environment or OS to build this project
I don't think it's a problem related with my environment because if a I try to create a cordova project without the salesforce Mobile Sdk plugins, the compilation step works as expected.
I've tried several options and I don't know what to do know, could anyone help me?