XuJess 2016-07-11 14:20 采纳率: 25%
浏览 3106

利用高德地图导航一直给我无法实例化 MapView类。我简直无言了

Rendering Problems The following classes could not be instantiated:
- com.amap.api.maps.MapView (Open Class, Show Exception, Clear Cache)
Tip: Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE Exception Details java.lang.IndexOutOfBoundsException: Index: 16842972, Size: 4   at java.util.ArrayList.rangeCheck(ArrayList.java:653)   at java.util.ArrayList.get(ArrayList.java:429)   at android.util.XmlPullAttributes.getAttributeValue(XmlPullAttributes.java:42)   at android.util.BridgeXmlPullAttributes.getAttributeValue(BridgeXmlPullAttributes.java:33)   at android.util.BridgeXmlPullAttributes.getAttributeIntValue(BridgeXmlPullAttributes.java:206)   at com.android.layoutlib.bridge.android.BridgeXmlBlockParser.getAttributeIntValue(BridgeXmlBlockParser.java:431)   at com.amap.api.maps.MapView.   ... (MapView.java:56)   at java.lang.reflect.Constructor.newInstance(Constructor.java:423)   at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)   at android.view.LayoutInflater.inflate(LayoutInflater.java:492)   at android.view.LayoutInflater.inflate(LayoutInflater.java:394) Copy stack to clipboard Couldn't resolve resource @string/location_here (5 similar errors not shown)

  • 写回答

4条回答 默认 最新

  • devmiao 2016-07-11 14:29
    关注
    评论

报告相同问题?