没有内存加载墙纸模拟器在android中出现内存错误

时间:2012-01-16 12:25:56

标签: android

当我启动模拟器时。我得到以下例外。任何人都告诉如何解决这个问题?

01-16 17:51:52.490: WARN/ImageWallpaper(40): Unable to load wallpaper!
01-16 17:51:52.490: WARN/ImageWallpaper(40): java.lang.OutOfMemoryError
01-16 17:51:52.490: WARN/ImageWallpaper(40):     at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
01-16 17:51:52.490: WARN/ImageWallpaper(40):     at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:483)
01-16 17:51:52.490: WARN/ImageWallpaper(40):     at android.app.WallpaperManager$Globals.getDefaultWallpaperLocked(WallpaperManager.java:320)
01-16 17:51:52.490: WARN/ImageWallpaper(40):     at android.app.WallpaperManager$Globals.peekWallpaperBitmap(WallpaperManager.java:234)
01-16 17:51:52.490: WARN/ImageWallpaper(40):     at android.app.WallpaperManager.getFastDrawable(WallpaperManager.java:420)
01-16 17:51:52.490: WARN/ImageWallpaper(40):     at com.android.internal.service.wallpaper.ImageWallpaper$DrawableEngine.updateWallpaperLocked(ImageWallpaper.java:272)
01-16 17:51:52.490: WARN/ImageWallpaper(40):     at com.android.internal.service.wallpaper.ImageWallpaper$DrawableEngine$WallpaperObserver.onReceive(ImageWallpaper.java:96)
01-16 17:51:52.490: WARN/ImageWallpaper(40):     at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:716)
01-16 17:51:52.490: WARN/ImageWallpaper(40):     at android.os.Handler.handleCallback(Handler.java:587)
01-16 17:51:52.490: WARN/ImageWallpaper(40):     at android.os.Handler.dispatchMessage(Handler.java:92)
01-16 17:51:52.490: WARN/ImageWallpaper(40):     at android.os.Looper.loop(Looper.java:132)
01-16 17:51:52.490: WARN/ImageWallpaper(40):     at com.android.server.ServerThread.run(SystemServer.java:579)

1 个答案:

答案 0 :(得分:0)

尝试增加模拟器的SD卡大小,我不确定只是尝试一下。