1

我正在使用谷歌地图 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)
4

0 回答 0