Ask Your Question

Lunbo's profile - activity

2017-03-14 08:51:56 -0600 received badge  Nice Answer (source)
2015-04-27 04:57:00 -0600 received badge  Nice Answer (source)
2014-08-01 02:51:18 -0600 received badge  Famous Question (source)
2014-06-15 14:32:26 -0600 received badge  Famous Question (source)
2014-01-26 22:43:39 -0600 received badge  Teacher (source)
2014-01-26 22:43:39 -0600 received badge  Self-Learner (source)
2014-01-26 22:28:55 -0600 received badge  Notable Question (source)
2014-01-17 02:24:27 -0600 received badge  Notable Question (source)
2014-01-12 20:45:01 -0600 received badge  Popular Question (source)
2014-01-12 19:13:40 -0600 answered a question Error while Run 'All tests' in a simple android ros project in Ubuntu

For those who may concern, I solved this problem by:

1: upgrade to Android Studio 0.4 and Gradle 0.7

2: using

compile('org.ros.android_core:android_honeycomb_mr2:0.1.+'){
        exclude group: 'junit'
        exclude group: 'xml-apis'
    }

instead of

compile 'org.ros.android_core:android_honeycomb_mr2:0.1.+'
2014-01-12 19:06:25 -0600 answered a question Create a simple project android ros on windows

I posted a similar question here http://answers.ros.org/question/114996/error-while-run-all-tests-in-a-simple-android-ros-project-in-ubuntu/

The configuration are basically the same except I am using Ubuntu.

I solved my problem by using

compile('org.ros.android_core:android_honeycomb_mr2:0.1.+'){
        exclude group: 'junit'
        exclude group: 'xml-apis'
    }

instead of

compile 'org.ros.android_core:android_honeycomb_mr2:0.1.+'

in your case, try

compile('org.ros.android_core:android_gingerbread_mr1:0.1.+'){
        exclude group: 'junit'
        exclude group: 'xml-apis'
    }
compile('org.ros.android_core:android_honeycomb_mr2:0.1.+'){
        exclude group: 'junit'
        exclude group: 'xml-apis'
    }

hope it works for you.

2014-01-05 18:08:56 -0600 asked a question Error while Run 'All tests' in a simple android ros project in Ubuntu

I am doing a simple android app using Ros in Android Studio. I followed the tutorial 'Installation-Android Studio Development Environment' http://wiki.ros.org/android/Tutorials/hydro/Installation%20-%20Android%20Studio%20Development%20Environment

Everything was good and I successfully compiled it. But then I got an error when I tried to Run it. After that, I couldn't compile it successfully anymore.

Gradle: trouble processing "javax/xml/parsers/DocumentBuilder.class":

Ill-advised or mistaken usage of a core class (java.* or javax.*) when not building a core library. This is often due to inadvertently including a core library file in your application's project, when using an IDE (such as Eclipse). If you are sure you're not intentionally defining a core class, then this is the most likely explanation of what's going on. However, you might actually be trying to define a class in a core namespace, the source of which you may have taken, for example, from a non-Android virtual machine project. This will most assuredly not work. At a minimum, it jeopardizes the compatibility of your app with future versions of the platform. It is also often of questionable legality. If you really intend to build a core library -- which is only appropriate as part of creating a full virtual machine distribution, as opposed to compiling an application -- then use the "--core-library" option to suppress this error message. If you go ahead and use "--core-library" but are in fact building an application, then be forewarned that your application will still fail to build or run, at some point. Please be prepared for angry customers who find, for example, that your application ceases to function once they upgrade their operating system. You will be to blame for this problem. If you are legitimately using some code that happens to be in a core package, then the easiest safe alternative you have is to repackage that code. That is, move the classes in question into your own package namespace. This means that they will never be in conflict with core system classes. JarJar is a tool that may help you in this endeavor. If you find that you cannot do this, then that is an indication that the path you are on will ultimately lead to pain, suffering, grief, and lamentation. 1 error; aborting

Error:Gradle: Execution failed for task ':MyApplication:dexDebug'.  Could not call IncrementalTask.taskAction() on task ':MyApplication:dexDebug'

I searched for the solution and it seems that i need to exclude some dependencies but I don't know which one need to be exclude and why. I only depends on what the tutorial asked me to do. I don't know which one conflict with the core library.

Can anybody help me solve this? the project compiled successfully. FYI: Ubuntu 12.04 Android Studio 0.3.2 Android API 19 Gradle 0.6.+

here is the the sub project build.gradle:

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.6.+'
    } } apply plugin: 'android ...
(more)
2014-01-05 16:34:19 -0600 received badge  Supporter (source)
2014-01-02 06:52:56 -0600 received badge  Famous Question (source)
2013-12-08 05:16:12 -0600 received badge  Popular Question (source)
2013-12-05 11:45:23 -0600 received badge  Scholar (source)
2013-12-05 11:45:17 -0600 commented answer android studio build error

Thanks! it works for me.

2013-12-04 08:49:14 -0600 received badge  Notable Question (source)
2013-12-04 05:07:32 -0600 received badge  Student (source)
2013-12-03 20:09:46 -0600 commented answer android studio build error

Actually, I leave it like that on purpose. I cannot post URL since I am new to this community. Sorry for bringing confusing post.

2013-12-03 20:06:26 -0600 received badge  Popular Question (source)
2013-12-02 00:07:12 -0600 asked a question android studio build error

I was so happy to see that there is a tutorial teaching you how to develop from Android Studio without a ROS environment.

h ttp://wiki.ros.org/android/Tutorials/hydro/Installation%20-%20Android%20Studio%20Development%20Environment

Follow the spec, I changed the build.gradle in the new project to the following

> buildscript { 
>     repositories {
>         mavenCentral()
>     }
>     dependencies {
>        classpath 'com.android.tools.build:gradle:0.6.+'
>     } } apply plugin: 'android' repositories {
>     maven {
>         url 'h ttps://github.com/rosjava/rosjava_mvn_repo/tree/master'
>     }
>     mavenCentral() } android {
>     compileSdkVersion 19
>     buildToolsVersion "19.0.0"
>     defaultConfig {
>         minSdkVersion 7
>         targetSdkVersion 19
>     } } dependencies {
>     compile 'org.ros.android_core:android_gingerbread_mr1:0.1.+'
>     compile 'org.ros.android_core:android_honeycomb_mr2:0.1.+'
>     compile 'org.ros.rosjava_core:rosjava:0.1.+'
>     compile 'com.android.support:appcompat-v7:+'
> }

Then there is an error when i tried to build it:

> Gradle: A problem occurred configuring project ':CameraImuManager'.
> Failed to notify project evaluation listener.
   > Could not resolve all dependencies for configuration ':CameraImuManager:_DebugCompile'.
      > Could not resolve org.ros.android_core:android_gingerbread_mr1:0.1.+.
        Required by:
            CameraImuManagerProject:CameraImuManager:unspecified
         > Could not resolve org.ros.android_core:android_gingerbread_mr1:0.1.+.
            > Could not parse POM h ttps://github.com/rosjava/rosjava_mvn_repo/tree/master/org/ros/android_core/android_gingerbread_mr1/0.1.2/android_gingerbread_mr1-0.1.2.pom
               > 已经看到 doctype。
      > Could not resolve org.ros.android_core:android_honeycomb_mr2:0.1.+.
        Required by:
            CameraImuManagerProject:CameraImuManager:unspecified
         > Could not resolve org.ros.android_core:android_honeycomb_mr2:0.1.+.
            > Could not parse POM h ttps://github.com/rosjava/rosjava_mvn_repo/tree/master/org/ros/android_core/android_honeycomb_mr2/0.1.2/android_honeycomb_mr2-0.1.2.pom
               > 已经看到 doctype。
      > Could not resolve org.ros.rosjava_core:rosjava:0.1.+.
        Required by:
            CameraImuManagerProject:CameraImuManager:unspecified
         > Could not resolve org.ros.rosjava_core:rosjava:0.1.+.
            > Could not parse POM h ttps://github.com/rosjava/rosjava_mvn_repo/tree/master/org/ros/rosjava_core/rosjava/0.1.6/rosjava-0.1.6.pom
               > 已经看到 doctype。

I use Android Studio on Ubuntu 12.04, thanks!

2013-12-01 15:12:10 -0600 asked a question error in "Non-ROS Installation" of ROSJAVA

I followed the instruction here rosjava.github.io/rosjava_core/latest/installing.html
and I failed at this command line at Non-ROS installation :

git checkout -b hydro origin/hydro

the error is:
Fatal: not a git repository (or any of the parent directories) .git

Can anybody help me with this? I just want to set up the developing environment of rosjava for Android.
I have installed ROS hydro on Ubuntu 12.04. Thanks!