ros2-java / ros2_java

Java and Android bindings for ROS2
Apache License 2.0
162 stars 91 forks source link

How to deal with build failing with "colcon build"? #234

Open lyp92 opened 6 months ago

lyp92 commented 6 months ago

When I compiled my project with "colcon build",it failed.I found error info in 'stdout_stderr.log':

And this is my 'build.gradle':

apply plugin: 'java' apply plugin: 'org.ros2.tools.gradle'

sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8

buildscript { repositories { jcenter() mavenCentral() mavenLocal() maven { url "https://plugins.gradle.org/m2/" } }

dependencies { classpath 'gradle.plugin.org.ros2.tools.gradle:ament:0.7.0' } }

repositories { mavenCentral() }

ament { entryPoints { consoleScripts = [ 'my_node = tld.domain.MyNode' ] } }

I got Ubuntu 22.04 with ROS2 Humble, Gradle 8.3 and Java 8 installed. Any ideas?