rosjava / android_core

Android libraries for rosjava
144 stars 166 forks source link

Problem building android_core: catkin_make #287

Open ghost opened 6 years ago

ghost commented 6 years ago

Hello,


UPDATE


The problem is: upon building, it cannot access desired urls over internet. I have tried tweaking proxies but not worth it. :(


I am trying to build android_core but cannot do it. For some reason i can access the below url from buidscript.gradle in browser but building it threw an error that "" it cannot access the url: *buidscript.gradle:"https://github.com/rosjava/rosjava_bootstrap/raw/kinetic/buildscript.gradle"*.

So, i updated the buildscript.gradle file as follows (i.e. merging both the file from the url and local file):

rootProject.buildscript { String rosMavenPath = System.getenv("ROS_MAVEN_PATH") String rosMavenRepository = System.getenv("ROS_MAVEN_REPOSITORY") repositories { if (rosMavenPath != null) { rosMavenPath.tokenize(":").each { path -> maven { // We can't use uri() here because we aren't running inside something // that implements the Script interface. url "file:${path}" } } } maven { url "http://repository.springsource.com/maven/bundles/release" } maven { url "http://repository.springsource.com/maven/bundles/external" } if (rosMavenRepository != null) { maven { url rosMavenRepository } } maven { url "https://github.com/rosjava/rosjava_mvn_repo/raw/master" } jcenter() } dependencies { classpath "com.android.tools.build:gradle:2.3.3" classpath "org.ros.rosjava_bootstrap:gradle_plugins:[0.3,0.4)" } }

However, after trying alot, I am now getting the following error on catkin_make:

`* What went wrong: A problem occurred configuring root project 'android_core'.

Could not resolve all dependencies for configuration ':classpath'. Could not resolve org.ros.rosjava_bootstrap:gradle_plugins:[0.3,0.4). Required by: project : Could not resolve org.ros.rosjava_bootstrap:gradle_plugins:[0.3,0.4). Failed to list versions for org.ros.rosjava_bootstrap:gradle_plugins. Unable to load Maven meta-data from https://github.com/rosjava/rosjava_mvn_repo/raw/master/org/ros/rosjava_bootstrap/gradle_plugins/maven-metadata.xml. Could not GET 'https://github.com/rosjava/rosjava_mvn_repo/raw/master/org/ros/rosjava_bootstrap/gradle_plugins/maven-metadata.xml'. Connection reset Could not resolve org.ros.rosjava_bootstrap:gradle_plugins:[0.3,0.4). Failed to list versions for org.ros.rosjava_bootstrap:gradle_plugins. Unable to load Maven meta-data from https://github.com/rosjava/rosjava_mvn_repo/raw/master/org/ros/rosjava_bootstrap/gradle_plugins/maven-metadata.xml. Could not GET 'https://github.com/rosjava/rosjava_mvn_repo/raw/master/org/ros/rosjava_bootstrap/gradle_plugins/maven-metadata.xml'. Connection reset `

I am using ubuntu 16.06, ros kinetic. Using openjdk8 installed using: sudo apt-get install openjdk-8-jdk and installed rosjava using: sudo apt-get install ros-kinetic-rosjava-build-tools I am not using any proxy. Never have/had any problems with accessing a valid url through catkin.

Thanks in advance.

jubeira commented 6 years ago

Hi @letsdoitagain, sorry for the delay.

Do you still experience this issue? Unfortunately, I don't recall getting stuck like that. Is your system going through a firewall of some kind? Catkin handles the controls to Gradle when compiling, so this doesn't seem to be a catkin-specific issue.