ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

building android_apps errors on Android Studio

asked 2015-11-02 20:36:44 -0600

kevin.kuei.0321@gmail.com gravatar image

Hi all,

I tried use Android Studio to import the latest android_apps, but I got build errors.

$ git clone -b indigo https://github.com/rosjava/android_apps.git

And I got following build errors:

Error:(161, 16) error: cannot find symbol method addLayer(ViewControlLayer)
Error:(162, 16) error: cannot find symbol method addLayer(OccupancyGridLayer)
Error:(163, 16) error: cannot find symbol method addLayer(LaserScanLayer)
Error:(164, 16) error: cannot find symbol method addLayer(PathLayer)
Error:(165, 16) error: cannot find symbol method addLayer(MapPosePublisherLayer)
Error:(166, 16) error: cannot find symbol method addLayer(InitialPoseSubscriberLayer)

It looks like the VisualizationView class in maven central repo did NOT have addLayer method.

Any suggestion will be appreciated.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2015-11-03 01:34:28 -0600

kevin.kuei.0321@gmail.com gravatar image

I think maybe the APi got changed. I saw a commit which removes the addLayer method in VisualizationView class. But the official android_apps still call it.

https://github.com/rosjava/android_co...

edit flag offensive delete link more

Comments

change the above code to this ..

mapView.onCreate(Lists.newArrayList( viewControlLayer, occupancyGridLayer, laserScanLayer, pathLayer, mapPosePublisherLayer, initialPoseSubscriberLayer ));

kevin.kuei.0321@gmail.com gravatar image kevin.kuei.0321@gmail.com  ( 2015-11-12 19:31:42 -0600 )edit
0

answered 2017-11-08 11:06:12 -0600

jubeira gravatar image

android_apps should build properly now in Kinetic branch. See https://github.com/rosjava/android_co... for reference.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-11-02 20:36:44 -0600

Seen: 1,086 times

Last updated: Nov 08 '17