Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Update to gradle 5.1.1, android gradle plugin 3.4.0 #300

Open
wmmc88 opened this issue Apr 18, 2019 · 16 comments
Open

Update to gradle 5.1.1, android gradle plugin 3.4.0 #300

wmmc88 opened this issue Apr 18, 2019 · 16 comments

Comments

@wmmc88
Copy link

wmmc88 commented Apr 18, 2019

Are you planning to update the gradle dependencies @jubeira ? I tried updating the values as has been done before , but it resulted in many dependencies failing to resolve.

> Task :android_core_components:compileDebugJavaWithJavac FAILED
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/NodeMainExecutorService.java:19: error: package com.google.common.base does not exist
import com.google.common.base.Preconditions;
                             ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/BitmapFromCompressedImage.java:21: error: package org.jboss.netty.buffer does not exist
import org.jboss.netty.buffer.ChannelBuffer;
                             ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/BitmapFromImage.java:19: error: package com.google.common.base does not exist
import com.google.common.base.Preconditions;
                             ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/BitmapFromImage.java:23: error: package org.jboss.netty.buffer does not exist
import org.jboss.netty.buffer.ChannelBuffer;
                             ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/OrientationPublisher.java:23: error: package geometry_msgs does not exist
import geometry_msgs.PoseStamped;
                    ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/OrientationPublisher.java:24: error: package org.ros.message does not exist
import org.ros.message.Time;
                      ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/OrientationPublisher.java:41: error: package geometry_msgs does not exist
    private final Publisher<geometry_msgs.PoseStamped> publisher;
                                         ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/OrientationPublisher.java:43: error: package geometry_msgs does not exist
    private OrientationListener(Publisher<geometry_msgs.PoseStamped> publisher) {
                                                       ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/DiagnosticsArrayView.java:41: error: package org.ros.message does not exist
import org.ros.message.MessageListener;
                      ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/DistanceView.java:26: error: package org.ros.message does not exist
import org.ros.message.MessageListener;
                      ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/DistanceView.java:47: error: cannot find symbol
    MessageListener<sensor_msgs.LaserScan> {
    ^
  symbol: class MessageListener
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/Color.java:19: error: package com.google.common.base does not exist
import com.google.common.base.Preconditions;
                             ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/layer/PointCloud2DLayer.java:19: error: package com.google.common.base does not exist
import com.google.common.base.Preconditions;
                             ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/layer/SubscriberLayer.java:19: error: package com.google.common.base does not exist
import com.google.common.base.Preconditions;
                             ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/VisualizationView.java:19: error: package com.google.common.base does not exist
import com.google.common.base.Preconditions;
                             ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/VisualizationView.java:20: error: package com.google.common.collect does not exist
import com.google.common.collect.Lists;
                                ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/XYOrthographicCamera.java:19: error: package com.google.common.base does not exist
import com.google.common.base.Preconditions;
                             ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/layer/GridCellsLayer.java:35: error: package nav_msgs does not exist
public class GridCellsLayer extends SubscriberLayer<nav_msgs.GridCells> implements TfLayer {
                                                            ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/layer/GridCellsLayer.java:43: error: package nav_msgs does not exist
  private nav_msgs.GridCells message;
                  ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/layer/CompressedOccupancyGridLayer.java:19: error: package com.google.common.base does not exist
import com.google.common.base.Preconditions;
                             ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/layer/CompressedOccupancyGridLayer.java:37: error: package nav_msgs does not exist
public class CompressedOccupancyGridLayer extends SubscriberLayer<nav_msgs.OccupancyGrid> implements
                                                                          ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/TextureBitmap.java:19: error: package com.google.common.base does not exist
import com.google.common.base.Preconditions;
                             ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/layer/CompressedOccupancyGridLayer.java:93: error: package nav_msgs does not exist
  void update(nav_msgs.OccupancyGrid message) {
                      ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/TextureBitmap.java:105: error: cannot find symbol
  public void updateFromPixelBuffer(ChannelBuffer pixels, int stride, float resolution,
                                    ^
  symbol:   class ChannelBuffer
  location: class TextureBitmap
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/layer/PathLayer.java:21: error: package geometry_msgs does not exist
import geometry_msgs.PoseStamped;
                    ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/layer/PathLayer.java:38: error: package nav_msgs does not exist
public class PathLayer extends SubscriberLayer<nav_msgs.Path> implements TfLayer {
                                                       ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/layer/PathLayer.java:82: error: package nav_msgs does not exist
  private void updateVertexBuffer(nav_msgs.Path path) {
                                          ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/layer/OccupancyGridLayer.java:19: error: package com.google.common.base does not exist
import com.google.common.base.Preconditions;
                             ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/layer/OccupancyGridLayer.java:20: error: package com.google.common.collect does not exist
import com.google.common.collect.Lists;
                                ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/layer/OccupancyGridLayer.java:25: error: package org.ros.internal.message does not exist
import org.ros.internal.message.MessageBuffers;
                               ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/layer/OccupancyGridLayer.java:40: error: package nav_msgs does not exist
public class OccupancyGridLayer extends SubscriberLayer<nav_msgs.OccupancyGrid> implements TfLayer {
                                                                ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/layer/OccupancyGridLayer.java:175: error: package nav_msgs does not exist
  private void update(nav_msgs.OccupancyGrid message) {
                              ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/layer/OccupancyGridLayer.java:68: error: cannot find symbol
    private final ChannelBuffer pixelBuffer = MessageBuffers.dynamicBuffer();
                  ^
  symbol:   class ChannelBuffer
  location: class OccupancyGridLayer.Tile
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/layer/PosePublisherLayer.java:19: error: package com.google.common.base does not exist
import com.google.common.base.Preconditions;
                             ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/layer/CameraControlLayer.java:19: error: package com.google.common.base does not exist
import com.google.common.base.Preconditions;
                             ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/shape/BaseShape.java:3: error: package com.google.common.base does not exist
import com.google.common.base.Preconditions;
                             ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/shape/MetricSpacePolygon.java:19: error: package com.google.common.base does not exist
import com.google.common.base.Preconditions;
                             ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/shape/MetricSpacePolygon.java:20: error: package com.google.common.collect does not exist
import com.google.common.collect.Lists;
                                ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/Vertices.java:19: error: package com.google.common.base does not exist
import com.google.common.base.Preconditions;
                             ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/camera/CompressedImagePublisher.java:19: error: package com.google.common.base does not exist
import com.google.common.base.Preconditions;
                             ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/camera/CompressedImagePublisher.java:25: error: package org.jboss.netty.buffer does not exist
import org.jboss.netty.buffer.ChannelBufferOutputStream;
                             ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/camera/CompressedImagePublisher.java:26: error: package org.ros.internal.message does not exist
import org.ros.internal.message.MessageBuffers;
                               ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/camera/CompressedImagePublisher.java:27: error: package org.ros.message does not exist
import org.ros.message.Time;
                      ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/camera/CompressedImagePublisher.java:47: error: cannot find symbol
  private ChannelBufferOutputStream stream;
          ^
  symbol:   class ChannelBufferOutputStream
  location: class CompressedImagePublisher
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/camera/CameraPreviewView.java:19: error: package com.google.common.base does not exist
import com.google.common.base.Preconditions;
                             ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/VirtualJoystickView.java:55: error: cannot find symbol
    MessageListener<nav_msgs.Odometry>, NodeMain {
    ^
  symbol: class MessageListener
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/VirtualJoystickView.java:55: error: package nav_msgs does not exist
    MessageListener<nav_msgs.Odometry>, NodeMain {
                            ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/VirtualJoystickView.java:98: error: package geometry_msgs does not exist
  private Publisher<geometry_msgs.Twist> publisher;
                                 ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/VirtualJoystickView.java:242: error: package geometry_msgs does not exist
  private geometry_msgs.Twist currentVelocityCommand;
                       ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/VirtualJoystickView.java:288: error: package nav_msgs does not exist
  public void onNewMessage(final nav_msgs.Odometry message) {
                                         ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/RosActivity.java:26: error: package com.google.common.base does not exist
import com.google.common.base.Preconditions;
                             ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/MasterChooser.java:19: error: package com.google.common.base does not exist
import com.google.common.base.Preconditions;
                             ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/NodeMainExecutorService.java:219: error: cannot find symbol
      Preconditions.checkArgument(intent.hasExtra(EXTRA_NOTIFICATION_TICKER));
      ^
  symbol:   variable Preconditions
  location: class NodeMainExecutorService
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/NodeMainExecutorService.java:220: error: cannot find symbol
      Preconditions.checkArgument(intent.hasExtra(EXTRA_NOTIFICATION_TITLE));
      ^
  symbol:   variable Preconditions
  location: class NodeMainExecutorService
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/BitmapFromCompressedImage.java:31: error: cannot find symbol
    ChannelBuffer buffer = message.getData();
    ^
  symbol:   class ChannelBuffer
  location: class BitmapFromCompressedImage
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/BitmapFromCompressedImage.java:31: error: cannot access Message
    ChannelBuffer buffer = message.getData();
                                  ^
  class file for org.ros.internal.message.Message not found
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/BitmapFromImage.java:32: error: cannot find symbol
    Preconditions.checkArgument(message.getEncoding().equals("rgb8"));
    ^
  symbol:   variable Preconditions
  location: class BitmapFromImage
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/BitmapFromImage.java:38: error: cannot find symbol
        ChannelBuffer data = message.getData();
        ^
  symbol:   class ChannelBuffer
  location: class BitmapFromImage
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/OrientationPublisher.java:56: error: cannot find symbol
        PoseStamped pose = publisher.newMessage();
        ^
  symbol:   class PoseStamped
  location: class OrientationPublisher.OrientationListener
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/OrientationPublisher.java:59: error: cannot find symbol
        pose.getHeader().setStamp(Time.fromMillis(System.currentTimeMillis()));
                                  ^
  symbol:   variable Time
  location: class OrientationPublisher.OrientationListener
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/OrientationPublisher.java:88: error: cannot access Log
      connectedNode.getLog().fatal(e);
                          ^
  class file for org.apache.commons.logging.Log not found
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/DiagnosticsArrayView.java:96: error: cannot find symbol
    subscriber.addMessageListener(new MessageListener<DiagnosticArray>() {
                                      ^
  symbol:   class MessageListener
  location: class DiagnosticsArrayView
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/DistanceView.java:110: error: incompatible types: DistanceView cannot be converted to MessageListener<LaserScan>
    laserScanSubscriber.addMessageListener(this);
                                           ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/DistanceView.java:113: error: package geometry_msgs does not exist
    Subscriber<geometry_msgs.Twist> twistSubscriber =
                            ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/DistanceView.java:114: error: package geometry_msgs does not exist
        connectedNode.newSubscriber("cmd_vel", geometry_msgs.Twist._TYPE);
                                                            ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/DistanceView.java:115: error: cannot find symbol
    twistSubscriber.addMessageListener(new MessageListener<geometry_msgs.Twist>() {
                                           ^
  symbol:   class MessageListener
  location: class DistanceView
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/DistanceView.java:115: error: package geometry_msgs does not exist
    twistSubscriber.addMessageListener(new MessageListener<geometry_msgs.Twist>() {
                                                                        ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/DistanceView.java:145: error: method does not override or implement a method from a supertype
  @Override
  ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/RosTextView.java:71: error: cannot find symbol
    subscriber.addMessageListener(new MessageListener<T>() {
                                      ^
  symbol:   class MessageListener
  location: class RosTextView<T>
  where T is a type-variable:
    T extends Object declared in class RosTextView
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/Color.java:40: error: cannot find symbol
    Preconditions.checkArgument(hex.length() == 6);
    ^
  symbol:   variable Preconditions
  location: class Color
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/Color.java:48: error: cannot find symbol
    Preconditions.checkArgument(0.0f <= red && red <= 1.0f);
    ^
  symbol:   variable Preconditions
  location: class Color
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/Color.java:49: error: cannot find symbol
    Preconditions.checkArgument(0.0f <= green && green <= 1.0f);
    ^
  symbol:   variable Preconditions
  location: class Color
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/Color.java:50: error: cannot find symbol
    Preconditions.checkArgument(0.0f <= blue && blue <= 1.0f);
    ^
  symbol:   variable Preconditions
  location: class Color
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/Color.java:51: error: cannot find symbol
    Preconditions.checkArgument(0.0f <= alpha && alpha <= 1.0f);
    ^
  symbol:   variable Preconditions
  location: class Color
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/layer/SubscriberLayer.java:55: error: cannot find symbol
    Preconditions.checkNotNull(subscriber);
    ^
  symbol:   variable Preconditions
  location: class SubscriberLayer<T>
  where T is a type-variable:
    T extends Object declared in class SubscriberLayer
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/layer/PointCloud2DLayer.java:83: error: cannot find symbol
    subscriber.addMessageListener(new MessageListener<PointCloud2>() {
                                      ^
  symbol:   class MessageListener
  location: class PointCloud2DLayer
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/layer/PointCloud2DLayer.java:96: error: cannot find symbol
    Preconditions.checkArgument(pointCloud.getHeight() == 1);
    ^
  symbol:   variable Preconditions
  location: class PointCloud2DLayer
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/layer/PointCloud2DLayer.java:97: error: cannot find symbol
    Preconditions.checkArgument(pointCloud.getIsDense());
    ^
  symbol:   variable Preconditions
  location: class PointCloud2DLayer
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/layer/PointCloud2DLayer.java:98: error: cannot find symbol
    Preconditions.checkArgument(pointCloud.getFields().size() == 3);
    ^
  symbol:   variable Preconditions
  location: class PointCloud2DLayer
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/layer/PointCloud2DLayer.java:99: error: cannot find symbol
    Preconditions.checkArgument(pointCloud.getFields().get(0).getDatatype() == PointField.FLOAT32);
    ^
  symbol:   variable Preconditions
  location: class PointCloud2DLayer
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/layer/PointCloud2DLayer.java:100: error: cannot find symbol
    Preconditions.checkArgument(pointCloud.getFields().get(1).getDatatype() == PointField.FLOAT32);
    ^
  symbol:   variable Preconditions
  location: class PointCloud2DLayer
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/layer/PointCloud2DLayer.java:101: error: cannot find symbol
    Preconditions.checkArgument(pointCloud.getFields().get(2).getDatatype() == PointField.FLOAT32);
    ^
  symbol:   variable Preconditions
  location: class PointCloud2DLayer
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/layer/PointCloud2DLayer.java:102: error: cannot find symbol
    Preconditions.checkArgument(pointCloud.getPointStep() == 16);
    ^
  symbol:   variable Preconditions
  location: class PointCloud2DLayer
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/layer/PointCloud2DLayer.java:103: error: cannot find symbol
    Preconditions.checkArgument(pointCloud.getData().order().equals(ByteOrder.LITTLE_ENDIAN));
    ^
  symbol:   variable Preconditions
  location: class PointCloud2DLayer
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/layer/PointCloud2DLayer.java:115: error: cannot find symbol
    final ChannelBuffer buffer = pointCloud.getData();
          ^
  symbol:   class ChannelBuffer
  location: class PointCloud2DLayer
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/VisualizationView.java:92: error: cannot find symbol
    Preconditions.checkNotNull(layers);
    ^
  symbol:   variable Preconditions
  location: class VisualizationView
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/VisualizationView.java:105: error: cannot find symbol
    for (Layer layer : Lists.reverse(layers)) {
                       ^
  symbol:   variable Lists
  location: class VisualizationView
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/VisualizationView.java:137: error: package tf2_msgs does not exist
    final Subscriber<tf2_msgs.TFMessage> tfSubscriber =
                             ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/VisualizationView.java:138: error: package tf2_msgs does not exist
        connectedNode.newSubscriber("tf", tf2_msgs.TFMessage._TYPE);
                                                  ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/VisualizationView.java:139: error: cannot find symbol
    tfSubscriber.addMessageListener(new MessageListener<tf2_msgs.TFMessage>() {
                                        ^
  symbol:   class MessageListener
  location: class VisualizationView
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/VisualizationView.java:139: error: package tf2_msgs does not exist
    tfSubscriber.addMessageListener(new MessageListener<tf2_msgs.TFMessage>() {
                                                                ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/VisualizationView.java:149: error: package tf2_msgs does not exist
    final Subscriber<tf2_msgs.TFMessage> tfStaticSubscriber =
                             ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/VisualizationView.java:150: error: package tf2_msgs does not exist
        connectedNode.newSubscriber("tf_static", tf2_msgs.TFMessage._TYPE);
                                                         ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/VisualizationView.java:151: error: cannot find symbol
    tfStaticSubscriber.addMessageListener(new MessageListener<tf2_msgs.TFMessage>() {
                                              ^
  symbol:   class MessageListener
  location: class VisualizationView
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/VisualizationView.java:151: error: package tf2_msgs does not exist
    tfStaticSubscriber.addMessageListener(new MessageListener<tf2_msgs.TFMessage>() {
                                                                      ^
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/XYOrthographicCamera.java:98: error: cannot find symbol
    Preconditions.checkNotNull(frame);
    ^
  symbol:   variable Preconditions
  location: class XYOrthographicCamera
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/XYOrthographicCamera.java:207: error: cannot find symbol
    Preconditions.checkNotNull(frame);
    ^
  symbol:   variable Preconditions
  location: class XYOrthographicCamera
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/XYOrthographicCamera.java:251: error: cannot find symbol
    Preconditions.checkNotNull(viewport);
    ^
  symbol:   variable Preconditions
  location: class XYOrthographicCamera
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/XYOrthographicCamera.java:256: error: cannot find symbol
    Preconditions.checkNotNull(viewport);
    ^
  symbol:   variable Preconditions
  location: class XYOrthographicCamera
/home/wmmc88/rosandroid/src/android_core/android_core_components/src/org/ros/android/view/visualization/layer/GridCellsLayer.java:68: error: package geometry_msgs does not exist
    for (geometry_msgs.Point cell : message.getCells()) {
                      ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
100 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':android_core_components:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 2s
16 actionable tasks: 1 executed, 15 up-to-date
@jubeira
Copy link

jubeira commented Apr 20, 2019

Hi @wmmc88,

It looks like it's failing to resolve rosjava_mvn_repo (which is added when applying this buildscript).

Updating Gradle versions has brought some hiccups in the past; last time I had to upgrade all Gradle versions across all rosjava repositories at once because of one incompatibility. Do you need Gradle 5 for some particular reason?

@wmmc88
Copy link
Author

wmmc88 commented Apr 24, 2019

@jubeira since im using gradle to include the ros android, it uses calls the chain of buildscripts and apply's the gradle version across my entire project (I don't understand why it needs to do this as it's not building anything from ros-android itself, just pulling in artifacts, right?). I was hoping to take advantage of some of the new features in the android gradle plugin, but this depends on a higher version of gradle and both the gradle version and the android gradle plugin version are pulled in from the ros buildscripts.

@jubeira
Copy link

jubeira commented Apr 24, 2019

@jubeira since im using gradle to include the ros android, it uses calls the chain of buildscripts and apply's the gradle version across my entire project (I don't understand why it needs to do this as it's not building anything from ros-android itself, just pulling in artifacts, right?)

How are you accomplishing that?
If you just want e.g. android_core in its binary (artifact) distribution you would just need to add it as a dependency (using compile or implementation), but that shouldn't force you to use the same Gradle version in your project. Are you building your project together with android_core?

@wmmc88
Copy link
Author

wmmc88 commented Apr 24, 2019

According to this , it says I need to also replace the buildscript portion of the grade file so that it applies the buildscript.gradle file in the android -core repo in addition to the needed lines in the dependencies section.

@jubeira
Copy link

jubeira commented Apr 24, 2019

Alright; yes, that's correct, but you can do what those scripts do for you manually as well. Applying the buildscripts is basically a convenient shortcut, but you can also copy the contents into your script and modify them.

If you check the contents of the applied buildscript, it does the following:

  • Apply Gradle plugin 3.2.1
  • Add jcenter and Google maven repositories
  • Apply this script

Instead of applying the first buildscript, try doing what it does manually in your buildscript with the version of the Gradle plugin that you want.

@wmmc88
Copy link
Author

wmmc88 commented Apr 25, 2019

I upgraded to plugin 3.2.2 w/ gradle 4.10.1 and everything worked fine.

Then when i tried to upgrade to plugin 3.4.0 w/ gradle 5.1.1, it could no longer resolve org.ros.messages (Time and Duration). I think these are supposed pulled in from bootstrap somehow?

@jubeira
Copy link

jubeira commented Apr 25, 2019

It's not that they are pulled from bootstrap; the buildscript that lives on rosjava_bootstrap and is applied (see here) adds rosjava_mvn_repo URL to the list, which is where the artifacts are pulled from.

That being said, I'm not sure why the new Gradle version breaks. I think compile was deprecated in favor of implementation, but compile was still supported in Gradle 4. Maybe compile was removed in Gradle 5, and the dependencies are not being properly resolved?

@wmmc88
Copy link
Author

wmmc88 commented Apr 25, 2019

Does the "ros-android" gradle plugin do anything useful?

I think i misphrased my earlier reply. When I use plugin 3.4 w/ gradle 5, I am still able to resolve most ros things. My module level ros dependencies are:

 implementation 'org.ros.android_core:android_core_components:0.4.0'
 implementation 'org.ros.rosjava_messages:sensor_msgs:1.12.7'
 implementation 'org.ros.rosjava_messages:std_srvs:1.11.2' 
 implementation 'org.ros.rosjava_messages:std_msgs:0.5.11'

and they all resolve perfectly fine. My issue comes from specifically resolving the org.ros.messages package to be able to import Time and Duration objects. I looked at the android_core source code and the rosjava_core source code and neither have that package. I found it here in the ros_bootstrap repo. I'm confused as to how it ever resolved the org.ros.messages packages.

@jubeira
Copy link

jubeira commented Apr 26, 2019

Looks like you need message_generation: https://github.com/rosjava/rosjava_mvn_repo/tree/master/org/ros/rosjava_bootstrap/message_generation/0.3.3.

Try adding

implementation 'org.ros.rosjava_bootstrap.message_generation:[0.3, 0.4)'

I don't know why it didn't complain before. If I'm not mistaken, ROS messages depend on it so it would be a second-level dependency. Maybe the new version of Gradle needs to specify it as well..?

@wmmc88
Copy link
Author

wmmc88 commented Apr 26, 2019

thanks. is working now after adding the message_generation dependency. i thought android_core_components already pulled in message_generation, but i guess it doesnt.

@gxshao
Copy link

gxshao commented Jul 1, 2019

Looks like you need message_generation: https://github.com/rosjava/rosjava_mvn_repo/tree/master/org/ros/rosjava_bootstrap/message_generation/0.3.3.

Try adding

implementation 'org.ros.rosjava_bootstrap.message_generation:[0.3, 0.4)'

I don't know why it didn't complain before. If I'm not mistaken, ROS messages depend on it so it would be a second-level dependency. Maybe the new version of Gradle needs to specify it as well..?

I think we should use : replace .

implementation 'org.ros.rosjava_bootstrap:message_generation:[0.3, 0.4)'

and still not working, miss another dependencies...i was manually added several dependencies such as org.ros.rosjava_messages:xxx:version .. finally i got an error says org.apache.commons.logging.Log not found. can you help me with that? thank you.

@gxshao
Copy link

gxshao commented Jul 2, 2019

@jubeira really need your help ..bro

@jubeira
Copy link

jubeira commented Jul 2, 2019

@gxshao using Gradle 5.1.1 is an enhancement over the current codebase, so I haven't tried it on my side.
@wmmc88 would you mind clarifying what you did to make it work a bit further?

@wmmc88
Copy link
Author

wmmc88 commented Jul 2, 2019

I don't remember what else I did to get it working and am no longer working on that project

@gxshao
Copy link

gxshao commented Jul 3, 2019

@jubeira i just manually added commons-logging into build.gradle. and it's build successful. thanks for your reply..

@gxshao
Copy link

gxshao commented Jul 3, 2019

i am using Gradle 5.5 for nested build, btw.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants