본문 바로가기

Android

Android Launch image 팅김

안드로이드 첫 시작시 나오는 스플래시 이미지의 크기를 ios 크기에 맞춰서 크게 잡았더니 크래시가 발생함


스플래시의 이미지의 픽셀이 너무 높을 경우 일부기기에서 로딩을 하지 못하는 현상으로 크래시가 발생


아래의 에러코드를 살펴보면 잡다한게 많지만 이미지를 그리지 못한다는 메세지가 다수 보임


해결 방법 : 안드로이드 화면크기의 픽셀크기로 splash 이미지로 만들어야함


[Google Play Console에서 남겨진 비정상 종료 로그]

java.lang.RuntimeException:
at android.view.DisplayListCanvas.throwIfCannotDraw (DisplayListCanvas.java:260)
at android.graphics.Canvas.drawBitmap (Canvas.java:1420)
at android.graphics.drawable.BitmapDrawable.draw (BitmapDrawable.java:545)
at android.widget.ImageView.onDraw (ImageView.java:1286)
at android.view.View.draw (View.java:18324)
at android.view.View.updateDisplayListIfDirty (View.java:17302)
at android.view.View.draw (View.java:18086)
at android.view.ViewGroup.drawChild (ViewGroup.java:3966)
at android.view.ViewGroup.dispatchDraw (ViewGroup.java:3752)
at android.view.View.updateDisplayListIfDirty (View.java:17297)
at android.view.View.draw (View.java:18086)
at android.view.ViewGroup.drawChild (ViewGroup.java:3966)
at android.view.ViewGroup.dispatchDraw (ViewGroup.java:3752)
at android.view.View.updateDisplayListIfDirty (View.java:17297)
at android.view.View.draw (View.java:18086)
at android.view.ViewGroup.drawChild (ViewGroup.java:3966)
at android.view.ViewGroup.dispatchDraw (ViewGroup.java:3752)
at android.view.View.updateDisplayListIfDirty (View.java:17297)
at android.view.View.draw (View.java:18086)
at android.view.ViewGroup.drawChild (ViewGroup.java:3966)
at android.view.ViewGroup.dispatchDraw (ViewGroup.java:3752)
at android.view.View.draw (View.java:18327)
at com.android.internal.policy.DecorView.draw (DecorView.java:919)
at android.view.View.updateDisplayListIfDirty (View.java:17302)
at android.view.ThreadedRenderer.updateViewTreeDisplayList (ThreadedRenderer.java:692)
at android.view.ThreadedRenderer.updateRootDisplayList (ThreadedRenderer.java:698)
at android.view.ThreadedRenderer.draw (ThreadedRenderer.java:806)
at android.view.ViewRootImpl.draw (ViewRootImpl.java:3139)
at android.view.ViewRootImpl.performDraw (ViewRootImpl.java:2935)
at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:2527)
at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1526)
at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:7102)
at android.view.Choreographer$CallbackRecord.run (Choreographer.java:927)
at android.view.Choreographer.doCallbacks (Choreographer.java:702)
at android.view.Choreographer.doFrame (Choreographer.java:638)
at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:913)
at android.os.Handler.handleCallback (Handler.java:751)
at android.os.Handler.dispatchMessage (Handler.java:95)
at android.os.Looper.loop (Looper.java:154)
at android.app.ActivityThread.main (ActivityThread.java:6682)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1520)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1410)