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

error building android core [closed]

asked 2012-05-01 00:23:46 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I'm following the instructions on http://docs.rosjava.googlecode.com/hg/android_core/html/building.html , but when i build android_core , i came across this kind of problem. I have made the rosjava_core, and the only code i've changed is when installing ant i use "sudo apt-get install ant ant-optional" instead of "sudo apt-get install ant1.8 ant1.8-optional". I have already installed SDK(not from code) and plug-in for eclipse but i have never configured that. can anybody help me on that? Thanks a lot.

Building > :android_acm_serial:deployLibs > Resolving dependencies ':android_a:android_acm_serial:deployLibs UP-TO-DATE :android_acm_serial:updateProject

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':android_acm_serial:updateProject'.

    A problem occurred starting command 'android'.

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

BUILD FAILED

and that's what i get when run --stacktrace

:android_acm_serial:deployLibs UP-TO-DATE :android_acm_serial:updateProject

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':android_acm_serial:updateProject'.

    A problem occurred starting command 'android'.

  • Try: Run with --info or --debug option to get more log output.

  • Exception is: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':android_acm_serial:updateProject'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:68) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46) at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:34) at org.gradle.api.internal.changedetection.CacheLockHandlingTaskExecuter$1.run(CacheLockHandlingTaskExecuter.java:34) at org.gradle.cache.internal.DefaultCacheAccess$2.create(DefaultCacheAccess.java:200) at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(DefaultCacheAccess.java:172) at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(DefaultCacheAccess.java:198) at org.gradle.cache.internal.DefaultPersistentDirectoryStore.longRunningOperation(DefaultPersistentDirectoryStore.java:111) at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateCacheAccess.longRunningOperation(DefaultTaskArtifactStateCacheAccess.java:83) at org.gradle.api.internal.changedetection.CacheLockHandlingTaskExecuter.execute(CacheLockHandlingTaskExecuter.java:32) at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:55) at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:57) at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:41) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:51) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:52) at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:42) at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:247) at org.gradle.execution.DefaultTaskGraphExecuter.executeTask(DefaultTaskGraphExecuter.java:192) at org.gradle.execution.DefaultTaskGraphExecuter.doExecute(DefaultTaskGraphExecuter.java:177) at org.gradle.execution.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:83) at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:36) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61) at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23) at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:67) at org.gradle.api.internal.changedetection.TaskCacheLockHandlingBuildExecuter$1.run(TaskCacheLockHandlingBuildExecuter.java:31) at org.gradle.cache.internal.DefaultCacheAccess$1.create(DefaultCacheAccess.java:111) at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:126) at org.gradle.cache.internal.DefaultCacheAccess.useCache ...

(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by damonkohler
close date 2012-05-21 05:49:16

2 Answers

Sort by ยป oldest newest most voted
0

answered 2012-05-01 22:54:13 -0500

damonkohler gravatar image

updated 2013-01-16 06:35:43 -0500

It looks like you have not properly installed the Android SDK. Make sure you have configured your PATH correctly. Executing "android" in your shell should launch the SDK update utility.

If the android tool is in your path and executes correctly, then it's possible that the gradle daemon is using a copy of your environment before the android tool was installed. Kill the daemon (ps aux | grep gradle; kill XXX) and try again.

edit flag offensive delete link more
0

answered 2012-05-21 02:30:43 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I can run the android command and get the SDK managemenet toolkit running, but still get the same problem as Han gets.

Any suggestions?

edit flag offensive delete link more

Comments

The correct answer has already been accepted. Please create a new question and include the error messages you're receiving.

damonkohler gravatar image damonkohler  ( 2012-05-21 05:49:01 -0500 )edit

Question Tools

Stats

Asked: 2012-05-01 00:23:46 -0500

Seen: 366 times

Last updated: Jan 16 '13