마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

액티비티를 이동할 때, 메모리관련해서 이런 에러가 나는데 처리할 수 있는 방법이 있을까요?

0 추천
E/AndroidRuntime: FATAL EXCEPTION: main
                  Process: com.homenetwork, PID: 4552
                  java.lang.RuntimeException: Unable to start activity ComponentInfo{com.homenetwork/com.homenetwork.Activity.OcmActivity}: android.view.InflateException: Binary XML file line #208: Binary XML file line #208: Error inflating class <unknown>
                      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2434)
                      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2494)
                      at android.app.ActivityThread.access$900(ActivityThread.java:157)
                      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1356)
                      at android.os.Handler.dispatchMessage(Handler.java:102)
                      at android.os.Looper.loop(Looper.java:148)
                      at android.app.ActivityThread.main(ActivityThread.java:5551)
                      at java.lang.reflect.Method.invoke(Native Method)
                      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730)
                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
                   Caused by: android.view.InflateException: Binary XML file line #208: Binary XML file line #208: Error inflating class <unknown>
                      at android.view.LayoutInflater.inflate(LayoutInflater.java:539)
                      at com.tsengvn.typekit.TypekitLayoutInflater.inflate(TypekitLayoutInflater.java:76)
                      at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
                      at com.tsengvn.typekit.TypekitLayoutInflater.inflate(TypekitLayoutInflater.java:70)
                      at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
                      at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:409)
                      at android.app.Activity.setContentView(Activity.java:2171)
                      at com.homenetwork.Activity.OcmActivity.onCreate(OcmActivity.java:143)
                     ......
                   Caused by: android.view.InflateException: Binary XML file line #208: Error inflating class <unknown>
                      at android.view.LayoutInflater.createView(LayoutInflater.java:645)
                      at com.tsengvn.typekit.TypekitLayoutInflater.onCreateView(TypekitLayoutInflater.java:146)
                      at android.view.LayoutInflater.onCreateView(LayoutInflater.java:694)
                     ......
                   Caused by: java.lang.OutOfMemoryError: Failed to allocate a 33476364 byte allocation with 31068608 free bytes and 29MB until OOM
                      at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
                      at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
                      at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:609)
                      at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:444)
                      at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:1080)
                      at android.content.res.Resources.loadDrawableForCookie(Resources.java:2738)
                      at android.content.res.Resources.loadDrawable(Resources.java:2643)
                      at android.content.res.TypedArray.getDrawable(TypedArray.java:870)
                      at android.view.View.<init>(View.java:3967)
                      at android.view.ViewGroup.<init>(ViewGroup.java:574)
                      at android.widget.LinearLayout.<init>(LinearLayout.java:203)
                      at android.widget.LinearLayout.<init>(LinearLayout.java:199)
                      at android.widget.LinearLayout.<init>(LinearLayout.java:195)
                      at java.lang.reflect.Constructor.newInstance(Native Method)
                      at android.view.LayoutInflater.createView(LayoutInflater.java:619)
                      at com.tsengvn.typekit.TypekitLayoutInflater.onCreateView(TypekitLayoutInflater.java:146)
                      at android.view.LayoutInflater.onCreateView(LayoutInflater.java:694)
                      at com.tsengvn.typekit.TypekitLayoutInflater.onCreateView(TypekitLayoutInflater.java:129)
                      at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:762)
                      at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
                      at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)
                      at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
                      at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
                      at com.tsengvn.typekit.TypekitLayoutInflater.inflate(TypekitLayoutInflater.java:76)
                      at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
                      at com.tsengvn.typekit.TypekitLayoutInflater.inflate(TypekitLayoutInflater.java:70)
                      at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
                      at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:409)
                      at android.app.Activity.setContentView(Activity.java:2171)
                      at com.homenetwork.Activity.OcmActivity.onCreate(OcmActivity.java:143)
                      at android.app.Activity.performCreate(Activity.java:6272)
                      at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
                      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2387)
                      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2494)
                      at android.app.ActivityThread.access$900(ActivityThread.java:157)
                      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1356)
                      at android.os.Handler.dispatchMessage(Handler.java:102)
                      at android.os.Looper.loop(Looper.java:148)
                      at android.app.ActivityThread.main(ActivityThread.java:5551)
                      at java.lang.reflect.Method.invoke(Native Method)
                      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730)
                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
익명사용자 님이 2017년 8월 28일 질문

1개의 답변

0 추천

android.view.InflateException: Binary XML file line #208: Binary XML file line #208: Error inflating class <unknown>

 Caused by: java.lang.OutOfMemoryError: Failed to allocate a 33476364 byte allocation 

 

aucd29 (218,390 포인트) 님이 2017년 8월 28일 답변
...