Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    Expert tip

    Try adding these lines to your manifest: android:hardwareAccelerated="false" and android:largeHeap="true" as it seems to work for some cases. See also this article about handling bitmaps on android's documentation: https://goo.gl/8LVrzp

  2. ,
    Expert tip

    Try adding these lines to your manifest: "android:hardwareAccelerated="false"" and "android:largeHeap="true"" as it seems to work for some cases. See also this article about handling bitmaps on android's documentation: https://goo.gl/8LVrzp

Solutions on the web

via Stack Overflow by C89-HD
, 1 year ago
Unable to start activity ComponentInfo{com.example.apollo.myapplication/com.example.apollo.myapplication.Main3Activity}: android.view.InflateException: Binary XML file line #2: Error inflating class <unknown>
via GitHub by lukaville
, 2 years ago
Unable to start activity ComponentInfo{com.example.test/com.example.test.ContactsActivity}: android.view.InflateException: Binary XML file line #2: Error inflating class <unknown>
via Stack Overflow by Tuhin
, 2 years ago
Unable to start activity ComponentInfo{com.example.android.myapplication/com.example.android.myapplication.MainActivity}: android.view.InflateException: Binary XML file line #2: Error inflating class <unknown>
via Stack Overflow by Abhishek S
, 2 years ago
Unable to start activity ComponentInfo{com.example.dell.firstapp/com.example.dell.firstapp.Splash}: android.view.InflateException: Binary XML file line #2: Error inflating class <unknown>
via Stack Overflow by Daniel Matev
, 2 years ago
Unable to start activity ComponentInfo{com.edpack.easyedit/com.edpack.easyedit.EditorActivity}: android.view.InflateException: Binary XML file line #2: Error inflating class <unknown>
via Stack Overflow by Muni
, 1 year ago
Unable to start activity ComponentInfo{com.munara.example/com.munara.example.ExActivity}: android.view.InflateException: Binary XML file line #2: Error inflating class <unknown>
java.lang.OutOfMemoryError: Failed to allocate a 43877388 byte allocation with 11648040 free bytes and 11MB 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:988)	at android.content.res.Resources.loadDrawableForCookie(Resources.java:2474)	at android.content.res.Resources.loadDrawable(Resources.java:2381)	at android.content.res.TypedArray.getDrawable(TypedArray.java:749)	at android.view.View.(View.java:3737)	at android.view.ViewGroup.(ViewGroup.java:497)	at android.widget.RelativeLayout.(RelativeLayout.java:248)	at android.widget.RelativeLayout.(RelativeLayout.java:244)	at android.widget.RelativeLayout.(RelativeLayout.java:240)	at java.lang.reflect.Constructor.newInstance(Native Method)	at java.lang.reflect.Constructor.newInstance(Constructor.java:288)	at android.view.LayoutInflater.createView(LayoutInflater.java:607)	at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:55)	at android.view.LayoutInflater.onCreateView(LayoutInflater.java:682)	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:741)	at android.view.LayoutInflater.inflate(LayoutInflater.java:482)	at android.view.LayoutInflater.inflate(LayoutInflater.java:414)	at android.view.LayoutInflater.inflate(LayoutInflater.java:365)	at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:280)	at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)	at com.example.apollo.myapplication.Main3Activity.onCreate(Main3Activity.java:13)	at android.app.Activity.performCreate(Activity.java:5990)	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)	at android.app.ActivityThread.access$800(ActivityThread.java:151)	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)	at android.os.Handler.dispatchMessage(Handler.java:102)	at android.os.Looper.loop(Looper.java:135)	at android.app.ActivityThread.main(ActivityThread.java:5254)	at java.lang.reflect.Method.invoke(Native Method)	at java.lang.reflect.Method.invoke(Method.java:372)	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)