Why getOverlays() is undefined for the MapView?
问题 My qestion might be easy sinse I'm android begginer. I'm following the Tutorial and have succeed in a first part of creating a map activity. But now I'm trying to add an overlay items. The problem is in my .java code: List<Overlay> mapOverlays = mapView.getOverlays(); this line is presented in all tutorials. But I get the error message like: 'The method getOverlays() is undefined for the type MapView'. Can anybody help me to solve it? code: package com.example.mapsdemo; import java.util.List;