引用百度自带的标注覆盖物示例,按照视频教程一步一步写好代码,接过视频里就能运行,我这里真机调试就闪退!error里也没有任何内容,只有warning里有以下几段话,完全看不懂,求大神解释啊!
warn代码如下:
02-20 03:13:40.173 3794-3794/com.example.dell.hellobmapforas W/dalvikvm: VFY: unable to find class referenced in signature (Landroid/view/SearchEvent;)
02-20 03:13:40.173 3794-3794/com.example.dell.hellobmapforas W/dalvikvm: VFY: unable to resolve interface method 18094: Landroid/view/Window$Callback;.onSearchRequested (Landroid/view/SearchEvent;)Z
02-20 03:13:40.173 3794-3794/com.example.dell.hellobmapforas W/dalvikvm: VFY: unable to resolve interface method 18098: Landroid/view/Window$Callback;.onWindowStartingActionMode (Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
02-20 03:13:40.413 3794-3794/com.example.dell.hellobmapforas W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x4166ac80)
Info里又提示这个:
Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
onUserAction return false, because eventName:[dim.Msf.GetTicketResult_4] is not allowed in server strategy!
No known package when getting value for resource number 0xffffffff
完全看不懂啊,求大神解惑到底是哪里错了,代码是建立在HellobaiduMapDemo上的,把以下这段注释掉就完全可以运行,但加上这段就不行,可是这段代码是根据官方文档些的啊!!就是下面这段,写在onCreate()末尾的:
//定义Maker坐标点
LatLng point = new LatLng(39.963175, 116.400244);
//构建Marker图标
BitmapDescriptor bitmap = BitmapDescriptorFactory
.fromResource(R.mipmap.ic_launcher);
//构建MarkerOption,用于在地图上添加Marker
OverlayOptions option = new MarkerOptions()
.position(point)
.icon(bitmap);
//在地图上添加Marker,并显示
baiduMap.addOverlay(option);
以上这段注释掉,HellobaiduMapDemo就能运行,加上就闪退,也没报错,有个提示说是线程未知异常未捕获。。。完全不知道怎么搞,楼主android新人,求大神帮助
warn代码如下:
02-20 03:13:40.173 3794-3794/com.example.dell.hellobmapforas W/dalvikvm: VFY: unable to find class referenced in signature (Landroid/view/SearchEvent;)
02-20 03:13:40.173 3794-3794/com.example.dell.hellobmapforas W/dalvikvm: VFY: unable to resolve interface method 18094: Landroid/view/Window$Callback;.onSearchRequested (Landroid/view/SearchEvent;)Z
02-20 03:13:40.173 3794-3794/com.example.dell.hellobmapforas W/dalvikvm: VFY: unable to resolve interface method 18098: Landroid/view/Window$Callback;.onWindowStartingActionMode (Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
02-20 03:13:40.413 3794-3794/com.example.dell.hellobmapforas W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x4166ac80)
Info里又提示这个:
Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
onUserAction return false, because eventName:[dim.Msf.GetTicketResult_4] is not allowed in server strategy!
No known package when getting value for resource number 0xffffffff
完全看不懂啊,求大神解惑到底是哪里错了,代码是建立在HellobaiduMapDemo上的,把以下这段注释掉就完全可以运行,但加上这段就不行,可是这段代码是根据官方文档些的啊!!就是下面这段,写在onCreate()末尾的:
//定义Maker坐标点
LatLng point = new LatLng(39.963175, 116.400244);
//构建Marker图标
BitmapDescriptor bitmap = BitmapDescriptorFactory
.fromResource(R.mipmap.ic_launcher);
//构建MarkerOption,用于在地图上添加Marker
OverlayOptions option = new MarkerOptions()
.position(point)
.icon(bitmap);
//在地图上添加Marker,并显示
baiduMap.addOverlay(option);
以上这段注释掉,HellobaiduMapDemo就能运行,加上就闪退,也没报错,有个提示说是线程未知异常未捕获。。。完全不知道怎么搞,楼主android新人,求大神帮助