must implement the inherited abstract method 问题解决

在调用百度地图Api时:

public class MySearchListener implements MKSearchListener { }

出现错误提示:

The type MapActivity.MySearchListener must implement the inherited abstract method MKSearchListener.onGetDrivingRouteResult(MKDrivingRouteResult, int)

解决方案:

查找MKSearchListener内所有的函数,需要在MySearchListener中全部重写。

参考资料:

http://stackoverflow.com/questions/11244313/type-must-implement-the-inherited-abstract-method-texttospeech-oninitlistener-on


你可能感兴趣的:(Java)