我正在使用google maps api v1制作应用程序。该程序在我的4.0.4 Android手机中运行良好。但是今天将我的手机更新到Android 4.2.2之后,我的应用程序不再运行了。它抛出IllegalStateException:Null Bitmap!在MapView.drawMap()。好像没有loading_tile_android.png文件。我真的很困惑。搜索很多,但我发现没有任何帮助。
logcat看起来像这样:
11-01 17:00:08.238: ERROR/MapView(8971): IllegalStateException on drawMap. Wiping cache.
11-01 17:00:08.238: ERROR/MapView(8971): java.lang.IllegalStateException: Null Bitmap! "loading_tile"; if seen during a test, this usually means that the image file needs to be added to the test.config file
11-01 17:00:08.238: ERROR/MapView(8971): at com.google.common.graphics.android.AndroidImage.<init>(Unknown Source)
11-01 17:00:08.238: ERROR/MapView(8971): at com.google.common.graphics.android.AndroidImageFactory.createImage(Unknown Source)
11-01 17:00:08.238: ERROR/MapView(8971): at com.google.googlenav.map.MapTile.createTempImages(Unknown Source)
11-01 17:00:08.238: ERROR/MapView(8971): at com.google.googlenav.map.MapTile.getTempImage(Unknown Source)
11-01 17:00:08.238: ERROR/MapView(8971): at com.google.googlenav.map.MapTile.getImage(Unknown Source)
11-01 17:00:08.238: ERROR/MapView(8971): at com.google.googlenav.map.Map.drawTile(Unknown Source)
11-01 17:00:08.238: ERROR/MapView(8971): at com.google.googlenav.map.Map.drawMapBackground(Unknown Source)
11-01 17:00:08.238: ERROR/MapView(8971): at com.google.googlenav.map.Map.drawMap(Unknown Source)
11-01 17:00:08.238: ERROR/MapView(8971): at com.google.android.maps.MapView.drawMap(MapView.java:1048)
11-01 17:00:08.238: ERROR/MapView(8971): at com.google.android.maps.MapView.onDraw(MapView.java:486)
11-01 17:00:08.238: ERROR/MapView(8971): at android.view.View.draw(View.java:6535)