android.view.InflateException: Binary XML file line #7: Error inflating class android.widget.ImageView

tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    android.view.InflateException: Binary XML file line #7: Error inflating class android.widget.ImageView

    Stack Overflow | 9 months ago | Daniel Pandapotan Simorangkir
    android.view.InflateException: Binary XML file line #7: Error inflating class android.widget.ImageView
  2. 0

    Fatal exception: main when adding imageview

    Stack Overflow | 3 years ago | user3001657
    java.lang.RuntimeException: Unable to start activity ComponentInfo{lanaux.play.awesome/lanaux.play.awesome.MainActivity}: android.view.InflateException: Binary XML file line #17: Error inflating class android.widget.ImageView
  3. 0

    android - Error running simple wall paper application

    Stack Overflow | 5 years ago | AndroidMoron
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.androidwallpaper/com.example.androidwallpaper.MainActivity}: android.view.InflateException: Binary XML file line #43: Error inflating class
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    android app crashes after starting

    Stack Overflow | 4 years ago | user1926907
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.germanlaundryfinal/com.example.germanlaundryfinal.MainActivity}: android.view.InflateException: Binary XML file line #24: Error inflating class
  6. 0

    White pages displayed and then crash

    GitHub | 4 years ago | librelioniv
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.niveales.wind/com.librelio.activity.StartupActivity}: android.view.InflateException: Binary XML file line #7: Error inflating class <unknown>
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.OutOfMemoryError

    Failed to allocate a 154050816 byte allocation with 12669460 free bytes and 109MB until OOM

    at dalvik.system.VMRuntime.newNonMovableArray()
  2. Android Platform
    ImageView.<init>
    1. dalvik.system.VMRuntime.newNonMovableArray(Native Method)
    2. android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
    3. android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:613)
    4. android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:446)
    5. android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:973)
    6. android.content.res.Resources.createFromResourceStream(Resources.java:2762)
    7. android.content.res.Resources.loadDrawableForCookie(Resources.java:2463)
    8. android.content.res.Resources.loadDrawable(Resources.java:2365)
    9. android.content.res.MiuiResources.loadDrawable(MiuiResources.java:393)
    10. android.content.res.TypedArray.getDrawable(TypedArray.java:751)
    11. android.widget.ImageView.<init>(ImageView.java:146)
    12. android.widget.ImageView.<init>(ImageView.java:135)
    13. android.widget.ImageView.<init>(ImageView.java:131)
    13 frames
  3. Java RT
    Constructor.newInstance
    1. java.lang.reflect.Constructor.newInstance(Native Method)
    2. java.lang.reflect.Constructor.newInstance(Constructor.java:288)
    2 frames
  4. Android Platform
    LayoutInflater.createView
    1. android.view.LayoutInflater.createView(LayoutInflater.java:611)
    1 frame
  5. Android
    PhoneLayoutInflater.onCreateView
    1. com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:55)
    1 frame
  6. Android Platform
    LayoutInflater.inflate
    1. android.view.LayoutInflater.onCreateView(LayoutInflater.java:686)
    2. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:745)
    3. android.view.LayoutInflater.rInflate(LayoutInflater.java:810)
    4. android.view.LayoutInflater.inflate(LayoutInflater.java:508)
    5. android.view.LayoutInflater.inflate(LayoutInflater.java:418)
    6. android.view.LayoutInflater.inflate(LayoutInflater.java:365)
    6 frames
  7. Android
    PhoneWindow.setContentView
    1. com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:377)
    1 frame
  8. Android Platform
    Activity.setContentView
    1. android.app.Activity.setContentView(Activity.java:2159)
    1 frame
  9. com.daniel.pencarikakus
    SplashScreen.onCreate
    1. com.daniel.pencarikakus.SplashScreen.onCreate(SplashScreen.java:22)
    1 frame
  10. Android Platform
    ActivityThread.main
    1. android.app.Activity.performCreate(Activity.java:5982)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2256)
    4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2363)
    5. android.app.ActivityThread.access$800(ActivityThread.java:147)
    6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1283)
    7. android.os.Handler.dispatchMessage(Handler.java:102)
    8. android.os.Looper.loop(Looper.java:135)
    9. android.app.ActivityThread.main(ActivityThread.java:5234)
    9 frames
  11. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  12. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:909)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:704)
    2 frames