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. ,

    The memory is leaking. Try to analyze the HEAP or use LeakCanacy (https://github.com/square/leakcanary) to figure out where is the exact problem.

Solutions on the web

via Stack Overflow by Swarnveer Singh
, 1 year ago
Unable to start activity ComponentInfo{bt4u.com.pokemonbattles/bt4u.com.pokemonbattles.MainActivity}: android.view.InflateException: Binary XML file line #21: Error inflating class <unknown>
via GitHub by mpuchala
, 1 year ago
Unable to start activity ComponentInfo{....MainActivity}: android.view.InflateException: Binary XML file line #21: Error inflating class com.mapbox.mapboxsdk.maps.MapView
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 GitHub by allan1st
, 2 years ago
Unable to start activity ComponentInfo{MY_PACKAGE_NAME/com.mixpanel.android.surveys.SurveyActivity}: android.view.InflateException: Binary XML file line #22: Error inflating class <unknown>
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 moxie0
, 1 year ago
Unable to start activity ComponentInfo{org.thoughtcrime.securesms/org.thoughtcrime.securesms.ConversationActivity}: android.view.InflateException: Binary XML file line #125: Error inflating class <unknown>
java.lang.OutOfMemoryError: Failed to allocate a 20971884 byte allocation with 16777120 free bytes and 19MB until OOM	at dalvik.system.VMRuntime.newNonMovableArray(Native Method)	at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)	at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:613)	at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:446)	at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:988)	at android.content.res.Resources.createFromResourceStream(Resources.java:2822)	at android.content.res.Resources.loadDrawableForCookie(Resources.java:2523)	at android.content.res.Resources.loadDrawable(Resources.java:2421)	at android.content.res.MiuiResources.loadDrawable(MiuiResources.java:393)	at android.content.res.TypedArray.getDrawable(TypedArray.java:751)	at android.view.View.(View.java:3740)	at android.view.ViewGroup.(ViewGroup.java:498)	at android.widget.GridLayout.(GridLayout.java:285)	at android.widget.GridLayout.(GridLayout.java:281)	at android.widget.GridLayout.(GridLayout.java:277)	at java.lang.reflect.Constructor.newInstance(Native Method)	at java.lang.reflect.Constructor.newInstance(Constructor.java:288)	at android.view.LayoutInflater.createView(LayoutInflater.java:611)	at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:55)	at android.view.LayoutInflater.onCreateView(LayoutInflater.java:686)	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:745)	at android.view.LayoutInflater.rInflate(LayoutInflater.java:810)	at android.view.LayoutInflater.inflate(LayoutInflater.java:508)	at android.view.LayoutInflater.inflate(LayoutInflater.java:418)	at android.view.LayoutInflater.inflate(LayoutInflater.java:365)	at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:256)	at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:109)	at bt4u.com.pokemonbattles.MainActivity.onCreate(MainActivity.java:47)	at android.app.Activity.performCreate(Activity.java:6041)	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1109)	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2285)	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2394)	at android.app.ActivityThread.access$800(ActivityThread.java:154)	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1308)	at android.os.Handler.dispatchMessage(Handler.java:102)	at android.os.Looper.loop(Looper.java:135)	at android.app.ActivityThread.main(ActivityThread.java:5276)	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:911)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:706)