rosjava / android_core

Android libraries for rosjava
145 stars 166 forks source link

Failed to resolve: org.ros - following tutorial #299

Closed bawboc closed 5 years ago

bawboc commented 5 years ago

I am attempting to follow the tutorial at http://wiki.ros.org/android/Tutorials/kinetic/Installation%20-%20Android%20Studio%20Development%20Environment . When I try to build this project, I get the error Failed to resolve: ros.org for this segment: dependencies { ... // You now now add any rosjava dependencies, like so: implementation 'org.ros.android_core:android_core_components:0.4.0' }

jubeira commented 5 years ago

Hi @bawboc,

Would you please try building https://github.com/rosjava/android_apps? That line should bring the dependency from rosjava_mvn_repo.

E.g. in teleop app the dependency is specified like that, and the app should work: https://github.com/rosjava/android_apps/blob/kinetic/teleop/build.gradle#L19

bawboc commented 5 years ago

Thanks,

That builds just fine. I was also able to build the android_core projects. It is just the tutorial I linked that I am having difficulties with. I was hoping to have a seperate project instead of having to add onto the existing android_core or android_apps projects.

James

On Tue, Apr 16, 2019 at 1:41 PM Juan Ignacio Ubeira < notifications@github.com> wrote:

Hi @bawboc https://github.com/bawboc,

Would you please try building https://github.com/rosjava/android_apps? That line should bring the dependency from rosjava_mvn_repo.

E.g. in teleop app the dependency is specified like that, and the app should work:

https://github.com/rosjava/android_apps/blob/kinetic/teleop/build.gradle#L19

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rosjava/android_core/issues/299#issuecomment-483795306, or mute the thread https://github.com/notifications/unsubscribe-auth/AOmveERzilOFg2DIbEZ3toO_3K3sB70cks5vhhk8gaJpZM4czaun .

jubeira commented 5 years ago

Have you applied the buildscript from the upstream repository in the top-level build.gradle as in here? https://github.com/rosjava/android_apps/blob/kinetic/build.gradle#L22. That's the line that adds rosjava's Maven repository, allowing to resolve those dependencies properly.

bawboc commented 5 years ago

Yes I did. But I had a typo. Thank you so much for your time. It's building now.