android Map v2中终结器抛出未捕获的异常。?怎么解决?

时间:2014-04-20 04:25:39

标签: android exception map

   I am integrating google map v2 and i got these below errors in logcat, so what happen wrong with code:

我的代码如下:

private GoogleMap googleMap;
googleMap = ((SupportMapFragment) getSupportFragmentManager()
                .findFragmentById(R.id.location_map)).getMap();

    if (googleMap == null) {
            googleMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);
            UiSettings mUiSettings = googleMap.getUiSettings();
            mUiSettings.setMyLocationButtonEnabled(true);

        } 

我的logcat在下面:

04-20 09:48:03.870: E/System(28491): Uncaught exception thrown by finalizer
    04-20 09:48:04.050: E/System(28491): java.io.IOException: close failed: EIO (I/O error)
    04-20 09:48:04.050: E/System(28491):    at libcore.io.IoUtils.close(IoUtils.java:41)
    04-20 09:48:04.050: E/System(28491):    at java.io.RandomAccessFile.close(RandomAccessFile.java:166)
    04-20 09:48:04.050: E/System(28491):    at java.io.RandomAccessFile.finalize(RandomAccessFile.java:175)
    04-20 09:48:04.050: E/System(28491):    at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:185)
    04-20 09:48:04.050: E/System(28491):    at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:168)
    04-20 09:48:04.050: E/System(28491):    at java.lang.Thread.run(Thread.java:856)
    04-20 09:48:04.050: E/System(28491): Caused by: libcore.io.ErrnoException: close failed: EIO (I/O error)
    04-20 09:48:04.050: E/System(28491):    at libcore.io.Posix.close(Native Method)
    04-20 09:48:04.050: E/System(28491):    at libcore.io.BlockGuardOs.close(BlockGuardOs.java:75)
    04-20 09:48:04.050: E/System(28491):    at libcore.io.IoUtils.close(IoUtils.java:38)
    04-20 09:48:04.050: E/System(28491):    ... 5 more

0 个答案:

没有答案