-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUILD FAILED: Exit code 1 #56
Comments
Glad to see other friends here. First please check whether or not you have the right API level installed, according to the AndroidManifest.xml the plugin targets API Level 21. If API Level 21 is already installed, try also install all levels start from 17. If you are sure that android SDK is installed correctly, there could be a build path issue in the plugin as I also encountered it when I started my app, there is a workaround: Hope this message can help. |
Hi Xu, thanks for the input. I ran I can
|
Try the following:(assume android tools folder is inside your path, otherwise you may find the "android" executable under [android SDK]/tools)
Do the same steps also for |
Hi again Xu and thanks for your assistance. I'm afraid that it failed at the first hurdle with this message:
This was after getting this:
And doing both this:
And this:
Whatever I set the update to be (either 5 or "android-21") I get the error noted above. Thanks for your time, Dom |
Hi Xu,
produces (project.properties):
And (local.properties)
And (proguard-project.txt)
Does that help? |
In |
Did anyone ever get this to work? This looks like it's the same issue I am having - trying to use SalesForce SDK to create an Android hybrid on Windows. |
@bhariharan, would you like to post the exact versions of ant, jdk, node and cordova you use? |
@michacom I already have experienced this bug using both the forcedroid and cordova plugin. I tried all solutions which @xuzongque kindly have proposed. I believe these problems are occurring only with Windows. I'm trying on a Mac OS X also. My versions of Windows are:
Thanks for attention helping us. Kind regards. |
@annoyingmouse, try to downgrade the version of Cordova. It works to me.
|
Thank @alexndreazevedo , the next time I need something using the SalesforceMobileSDK-CordovaPlugin I'll make sure I do so. ;-) |
We have added the max version constraint in the plugin.xml. |
I cannot do anything with these command lines.. oh my god.. |
@DieguitoBueno do you have tried remove and add again the android platform. When you downgrade the Cordova NPM, it doesn't change nothing into your project. I only could have success when I cleaned my platforms. |
delete the platforms and add the platforms again using ionic platform add android its works for me :-) |
can you build for another cordova project? |
Here is the solution guys !!! https://stackoverflow.com/questions/36095819/cordova-ios-error-building-images-xcassets/36968113#36968113 |
We're trying to get this working at the minute and have followed the instructions here. Everything works fine until we get to the line:
At which point we get the following error:
Apologies for using the Royal "we" it's just that my colleague is doing exactly the same and having the same issues. We trying to develop a hybrid Android Application and of course are adapting the instructions for use android rather than ios. We've got ant and the android sdk installed correctly as when we run cordova build after each step everything works fine, it's only after adding the SalesforceMobileSDK-CordovaPlugin that we get build errors.
We get the same errors when following the instructions in the PDF as well.
The text was updated successfully, but these errors were encountered: