android MapView always causes an OutOfMemoryError in nested elements

后端 未结 7 1469
我在风中等你
我在风中等你 2020-12-03 12:55

I am trying to create a MapView (currently without any overlays) inside some nested elements. It is basically something like ScrollView -> RelativeLayout -> Rela

7条回答
  •  不思量自难忘°
    2020-12-03 13:14

    I don't really see where you are getting an OutOfMemoryError? I do see this:

    Caused by: java.lang.IllegalArgumentException: MapViews can only be created inside instances of MapActivity.
    

    Which says you can only create a MapView inside a class that extends MapActivity, and it implies that you do not do this?

提交回复
热议问题