Ask Your Question
1

building android_core failed [closed]

asked 2012-04-08 11:11:48 -0500

hado gravatar image

I am trying to build rosjava_core and android_core from source with Android SDK (r17) and ROS (electric). Here are the steps I've tried:

hg clone https://code.google.com/p/rosjava rosjava_core
hg clone https://code.google.com/p/rosjava.android android_core

From http://docs.rosjava.googlecode.com/hg/rosjava_core/html/building.html

roscd rosjava_core
./gradlew install

FAILURE: Build failed with an exception:

Exception occurred:
  File "/usr/lib/python2.7/dist-packages/pygments/lexers/__init__.py", line 80, in get_lexer_by_name
    raise ClassNotFound('no lexer for alias %r found' % _alias)
ClassNotFound: no lexer for alias u'groovy' found
The full traceback has been saved in /tmp/sphinx-err-xdEEl7.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
Either send bugs to the mailing list at <http://groups.google.com/group/sphinx-dev/>,
or report them in the tracker at <http://bitbucket.org/birkenfeld/sphinx/issues/>. Thanks!
make: *** [html] Error 1

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':docs:install'.
> Command 'make' finished with (non-zero) exit value 2.

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

I've tried with: ./gradlew install -x docs:install

BUILD SUCCESSFUL
Total time: 1 mins 13.005 secs

From http://docs.rosjava.googlecode.com/hg/android_core/html/building.html

roscd android_core
./gradlew debug

BUILD FAILED

/home/hado/AndroidSDK/android-sdk-linux/tools/ant/build.xml:651: The following error occurred while executing this line:
/home/hado/AndroidSDK/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_honeycomb_mr2: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

Could you please give me idea how to fix those failures. Thanks.

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-07-02 23:32:08

Comments

As suggested, please post the output from running with --info/--debug/--stacktrace since the cause of the build failure is not in the output you shared.

damonkohler gravatar imagedamonkohler ( 2012-04-11 04:28:47 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted
1

answered 2012-04-22 23:27:08 -0500

damonkohler gravatar image

You're missing the compressed_visualization_transport_msgs package. If you install the google stack (http://ros.org/wiki/google, ./gradlew install) this error should go away. You may need to try ./gradlew clean debug.

edit flag offensive delete link more
0

answered 2012-04-19 20:17:53 -0500

hughie gravatar image

updated 2012-04-19 20:19:55 -0500

I have same error. this is my detailed error. My environments and logs are as below.

  • ROS electric
    • ant : 1.8.2
    • android SDK tools(R19)
    • Android 3.2, 3.1, 2.3.3 installed
  • DISTRIB_DESCRIPTION = Ubuntu 11.10
     Localname                  S SCM  Version-Spec               UID  (Spec)  URI  (Spec) (https://...)
     ---------                  - ---- ------------               -----------  -------------------------
     google                       hg   default                    74f72f400c60 code.google.com/p/rosjava.google
     android_core               M hg   default                    d06d044d3d57 code.google.com/p/rosjava.android
     rosjava_android            M hg                              d06d044d3d57 code.google.com/p/rosjava.android
     rosjava_core                 hg                              c8b056520989 rosjava.googlecode.com/hg

   11:22:44.249 [QUIET] [system.out] Buildfile: /opt/rocon/android_core/android_honeycomb_mr2/build.xml
    11:22:44.781 [QUIET] [system.out] 
    11:22:44.781 [QUIET] [system.out] -set-mode-check:
    11:22:44.782 [QUIET] [system.out] 
    11:22:44.782 [QUIET] [system.out] -set-debug-files:
    11:22:44.782 [QUIET] [system.out] 
    11:22:44.783 [QUIET] [system.out] -set-debug-mode:
    11:22:44.783 [QUIET] [system.out] 
    11:22:44.783 [QUIET] [system.out] -debug-obfuscation-check:
    11:22:44.784 [QUIET] [system.out] 
    11:22:44.784 [QUIET] [system.out] -setup:
    11:22:44.792 [QUIET] [system.out]      [echo] Creating output directories if needed...
    11:22:44.794 [QUIET] [system.out]      [echo] Gathering info for android_honeycomb_mr2...
    11:22:44.797 [QUIET] [system.out]     [setup] Android SDK Tools Revision 19
    11:22:44.839 [QUIET] [system.out]     [setup] Project Target: Android 3.2
    11:22:44.840 [QUIET] [system.out]     [setup] API level: 13
    11:22:44.840 [QUIET] [system.out]     [setup] Project Type: Android Library
    11:22:44.840 [QUIET] [system.out]     [setup] 
    11:22:44.841 [QUIET] [system.out]     [setup] ------------------
    11:22:44.841 [QUIET] [system.out]     [setup] Resolving library dependencies:
    11:22:44.842 [QUIET] [system.out]     [setup] /opt/rocon/android_core/android_honeycomb_mr2: ../android_gingerbread => /opt/rocon/android_core/android_gingerbread
    11:22:44.844 [QUIET] [system.out]     [setup] ------------------
    11:22:44.844 [QUIET] [system.out]     [setup] Ordered libraries:
    11:22:44.845 [QUIET] [system.out]     [setup] /opt/rocon/android_core/android_gingerbread
    11:22:44.904 [QUIET] [system.out]     [setup] 
    11:22:44.905 [QUIET] [system.out]     [setup] ------------------
    11:22:44.905 [QUIET] [system.out]     [setup] API<=15: Adding annotations.jar to the classpath.
    11:22:44.905 [QUIET] [system.out]     [setup] 
    11:22:44.906 [QUIET] [system.out]     [setup] ------------------
    11:22:44.929 [QUIET] [system.out] 
    11:22:44.930 [QUIET] [system.out] -build-setup:
    11:22:44.932 [QUIET] [system.out]      [echo] Building Libraries
    11:22:45.043 [QUIET] [system.out] 
    11:22:45.043 [QUIET] [system.out] nodeps:
    11:22:45.044 [QUIET] [system.out] 
    11:22:45.044 [QUIET] [system.out] -set-mode-check:
    11:22:45.044 [QUIET] [system.out] 
    11:22:45.044 [QUIET] [system.out] -set-debug-files:
    11:22:45.044 [QUIET] [system.out] 
    11:22:45.045 [QUIET] [system.out] -set-debug-mode:
    11:22:45.045 [QUIET] [system.out] 
    11:22:45.045 [QUIET] [system.out] -debug-obfuscation-check:
    11:22:45.045 [QUIET] [system.out] 
    11:22:45.045 [QUIET] [system.out] -setup:
    11:22:45.046 [QUIET] [system.out]      [echo] Creating output directories if needed...
    11 ...
(more)
edit flag offensive delete link more
0

answered 2012-06-12 09:34:45 -0500

Any clues here?

I have the compressed_vis, and did the previous steps.

15:28:38.806 [QUIET] [system.out] Buildfile: /home/phil/my_workspace/android_core/android_gingerbread_mr1/build.xml
15:28:39.555 [QUIET] [system.out] 
15:28:39.555 [QUIET] [system.out] -set-mode-check:
15:28:39.555 [QUIET] [system.out] 
15:28:39.556 [QUIET] [system.out] -set-debug-files:
15:28:39.556 [QUIET] [system.out] 
15:28:39.556 [QUIET] [system.out] -set-debug-mode:
15:28:39.557 [QUIET] [system.out] 
15:28:39.557 [QUIET] [system.out] -debug-obfuscation-check:
15:28:39.558 [QUIET] [system.out] 
15:28:39.558 [QUIET] [system.out] -setup:
15:28:39.570 [QUIET] [system.out]      [echo] Creating output directories if needed...
15:28:39.573 [QUIET] [system.out]      [echo] Gathering info for android_gingerbread_mr1...
15:28:39.578 [QUIET] [system.out]     [setup] Android SDK Tools Revision 19
15:28:39.647 [QUIET] [system.out]     [setup] Project Target: Android 2.3.3
15:28:39.648 [QUIET] [system.out]     [setup] API level: 10
15:28:39.648 [QUIET] [system.out]     [setup] Project Type: Android Library
15:28:39.650 [QUIET] [system.out]     [setup] 
15:28:39.651 [QUIET] [system.out]     [setup] ------------------
15:28:39.651 [QUIET] [system.out]     [setup] Resolving library dependencies:
15:28:39.653 [QUIET] [system.out]     [setup] No library dependencies.
15:28:39.653 [QUIET] [system.out]     [setup] 
15:28:39.654 [QUIET] [system.out]     [setup] ------------------
15:28:39.654 [QUIET] [system.out]     [setup] API<=15: Adding annotations.jar to the classpath.
15:28:39.655 [QUIET] [system.out]     [setup] 
15:28:39.655 [QUIET] [system.out]     [setup] ------------------
15:28:39.759 [QUIET] [system.out] 
15:28:39.759 [QUIET] [system.out] -build-setup:
15:28:39.775 [QUIET] [system.out] 
15:28:39.777 [QUIET] [system.out] -pre-build:
15:28:39.780 [QUIET] [system.out] 
15:28:39.780 [QUIET] [system.out] -code-gen:
15:28:39.783 [QUIET] [system.out]      [echo] ----------
15:28:39.783 [QUIET] [system.out]      [echo] Handling aidl files...
15:28:39.808 [QUIET] [system.out]      [aidl] No AIDL files to compile.
15:28:39.809 [QUIET] [system.out]      [echo] ----------
15:28:39.810 [QUIET] [system.out]      [echo] Handling RenderScript files...
15:28:39.835 [QUIET] [system.out] [renderscript] No RenderScript files to compile.
15:28:39.836 [QUIET] [system.out]      [echo] ----------
15:28:39.836 [QUIET] [system.out]      [echo] Handling Resources...
15:28:39.849 [QUIET] [system.out]      [aapt] No changed resources. R.java and Manifest.java untouched.
15:28:39.849 [QUIET] [system.out]      [echo] ----------
15:28:39.850 [QUIET] [system.out]      [echo] Handling BuildConfig class...
15:28:39.865 [QUIET] [system.out] [buildconfig] No need to generate new BuildConfig.
15:28:39.868 [QUIET] [system.out] 
15:28:39.868 [QUIET] [system.out] -pre-compile:
15:28:39.870 [QUIET] [system.out] 
15:28:39.870 [QUIET] [system.out] -compile:
15:28:39.911 [QUIET] [system.out]      [echo] Creating library output jar file...
15:28:39.970 [QUIET] [system.out] 
15:28:39.970 [QUIET] [system.out] -post-compile:
15:28 ...
(more)
edit flag offensive delete link more

Comments

If you're still having an issue, please create a new question for it.

damonkohler gravatar imagedamonkohler ( 2012-07-02 23:31:46 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2012-04-08 11:11:48 -0500

Seen: 1,847 times

Last updated: Jun 12 '12