ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

ant finished with (non-zero) exit value 1

asked 2012-05-15 17:10:42 -0600

Sam_h gravatar image

updated 2012-05-15 18:14:40 -0600

Hi,

I'm trying to build and install my android_core and up until now I've managed to get everything working except for an error which occurs during compilation of android_core. Here is the output of "./gradlew debug" in android_core directory:

    BUILD FAILED
/home/sam/Development/research/android-sdk-linux/tools/ant/build.xml:818: The following error occurred while executing this line:
/home/sam/Development/research/android-sdk-linux/tools/ant/build.xml:820: The following error occurred while executing this line:
/home/sam/Development/research/android-sdk-linux/tools/ant/build.xml:832: The following error occurred while executing this line:
/home/sam/Development/research/android-sdk-linux/tools/ant/build.xml:278: null returned: 137

Total time: 43 seconds

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':android_tutorial_camera:debug'.
> Command 'ant' finished with (non-zero) exit value 1.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Any help is greatly appreciated.

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted
1

answered 2012-05-18 02:33:17 -0600

Kat gravatar image

Hi

We had the same problem try this: android update project --path ./android_tutorial_camera --target android-13 but make sure the target is the API level you want. This worked for us. We had to do it a couple of times for different packages. Good luck

edit flag offensive delete link more
0

answered 2012-05-20 08:14:23 -0600

Sam_h gravatar image

That helped getting past that level but doesn't work on this one unfortunately:

    BUILD FAILED
/home/sam/Downloads/android-sdk-linux/tools/ant/build.xml:651: The following error occurred while executing this line:
/home/sam/Downloads/android-sdk-linux/tools/ant/build.xml:672: Compile failed; see the compiler error output for details.

Total time: 3 seconds

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':android_tutorial_hokuyo:debug'.
> Command 'ant' finished with (non-zero) exit value 1.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

I don't know what this ":android_tutorial_hokuyo" package is but is causing me so many problems.

Thank you so much for your help.

edit flag offensive delete link more

Comments

1

That worked also for this one for us. Hokuyo has to do with the laser sensors of the robot. They use it e.g. to make a map of the environment. If you don't need it you can (temporary) remove it from the settings.gradle file and gradlew will skip it.

Kat gravatar image Kat  ( 2012-05-20 20:31:58 -0600 )edit
1

Have you done the same for this one by changing the name?

android update project --path ./android_tutorial_hokuyo --target android-13

Kat gravatar image Kat  ( 2012-05-20 21:26:14 -0600 )edit
0

answered 2012-05-21 03:28:33 -0600

Sam_h gravatar image

I was thinking of removing hokuyo too. I'll try the alternative in the other post and will post back here the result.

Many thanks.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-05-15 17:10:42 -0600

Seen: 3,977 times

Last updated: May 21 '12