我在真机上运行的,照着API来写的,也没显示地图数据,是一片网格,不过在xml里报这个错 The following classes could not be instantiated: - com.baidu.mapapi.map.MapView (Open Class, Show Error Log) See the Error Log (Window > Show View) for more details. Tip: Use View.isInEditMode() in your custom views to skip code when shown in Eclipsejava.lang.ClassCastException: com.android.layoutlib.bridge.android.BridgeContext cannot be cast to android.app.Activity
再不行就可能是XML、service、申请key的问题,大致不会有别的原因了。
The following classes could not be instantiated:
- com.baidu.mapapi.map.MapView (Open Class, Show Error Log)
See the Error Log (Window > Show View) for more details.
Tip: Use View.isInEditMode() in your custom views to skip code when shown in Eclipsejava.lang.ClassCastException: com.android.layoutlib.bridge.android.BridgeContext cannot be cast to android.app.Activity