Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 417

Problem building android_core: catkin_make

$
0
0
Hello, 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 solved it by updating 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 (i.e it is failing to get "org.ros.rosjava_bootstrap:gradle_plugins:[0.3,0.4)" (it is a dependency from buildscript.gradle)): * 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.

Viewing all articles
Browse latest Browse all 417

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>