0

I'm following this thread: Why retrieving Google Directions for Android using KML data is not working anymore?

but I'm stuck on a incomprehensible error. When I try to refer to my class RouteOverlay something goes wrong: I can refer to my previous created class(RouteOverlay.java). Here the sitution:

enter image description here

And if I try to insert the codeline:

  import maps.RouteOverlay 

I obtain the following error:

 The type maps.RouteOverlay is not visible

I tried also, restarting Eclipse or Clean the project. I don't know what can I do!

Community
  • 1
  • 1
GVillani82
  • 17,196
  • 30
  • 105
  • 172

1 Answers1

2

The example you are copying have a typo. The RouteOverlay class is not public.

class RouteOverlay extends Overlay {}

Change it to:

public class RouteOverlay extends Overlay {}
Ole
  • 7,899
  • 2
  • 29
  • 34