java.lang.RuntimeException: Unable to start activity ComponentInfo{my.package.name/com.ngsoft.dynamic_surveys.activities.LoginActivity}: android.view.InflateException: Binary XML file line #1: Error inflating class <unknown>

Stack Overflow | yossico | 6 months ago
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

    Gradle fault only inside Android Studio and works great outside

    Stack Overflow | 6 months ago | yossico
    java.lang.RuntimeException: Unable to start activity ComponentInfo{my.package.name/com.ngsoft.dynamic_surveys.activities.LoginActivity}: android.view.InflateException: Binary XML file line #1: Error inflating class <unknown>
  2. 0

    Application breaks when Google Play Services SDK is introduced

    Stack Overflow | 2 years ago
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.batsoft.pepeeizle/com.batsoft.MainActivity}: android.view.InflateException: Binary XML file line #17: Error inflating class <unknown>
  3. 0

    Android InflateException Binary XML file line #2

    Stack Overflow | 1 year ago | Habchi
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.m2gl.runandshare/com.m2gl.runandshare.SummaryWorkoutActivity}: android.view.InflateException: Binary XML file line #2: Error inflating class <unknown>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    null pointer exception when i add style to my layout xml file

    Coderanch | 3 years ago | sam liya
    android.view.InflateException: Binary XML file line #2: Error inflating class <unknown>
  6. 0

    Падение при создании сообщения

    GitHub | 4 months ago | BishopGIS
    java.lang.RuntimeException: Unable to resume activity {com.nextgis.safeforest/com.nextgis.safeforest.activity.CreateMessageActivity}: android.view.InflateException: Binary XML file line #33: 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. android.content.res.Resources$NotFoundException

    Resource is not a Drawable (color or path): TypedValue{t=0x1/d=0x7f02004e a=-1 r=0x7f02004e}

    at android.content.res.Resources.loadDrawable()
  2. Android Platform
    LinearLayout.<init>
    1. android.content.res.Resources.loadDrawable(Resources.java:1927)
    2. android.content.res.TypedArray.getDrawable(TypedArray.java:601)
    3. android.view.View.<init>(View.java:3330)
    4. android.view.ViewGroup.<init>(ViewGroup.java:431)
    5. android.widget.LinearLayout.<init>(LinearLayout.java:176)
    6. android.widget.LinearLayout.<init>(LinearLayout.java:172)
    6 frames
  3. Java RT
    Constructor.newInstance
    1. java.lang.reflect.Constructor.constructNative(Native Method)
    2. java.lang.reflect.Constructor.newInstance(Constructor.java:417)
    2 frames
  4. Android Platform
    LayoutInflater.createView
    1. android.view.LayoutInflater.createView(LayoutInflater.java:587)
    1 frame
  5. Android
    PhoneLayoutInflater.onCreateView
    1. com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
    1 frame
  6. Android Platform
    LayoutInflater.inflate
    1. android.view.LayoutInflater.onCreateView(LayoutInflater.java:660)
    2. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)
    3. android.view.LayoutInflater.inflate(LayoutInflater.java:466)
    4. android.view.LayoutInflater.inflate(LayoutInflater.java:396)
    5. android.view.LayoutInflater.inflate(LayoutInflater.java:352)
    5 frames
  7. Android
    PhoneWindow.setContentView
    1. com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:270)
    1 frame
  8. Android Platform
    Activity.setContentView
    1. android.app.Activity.setContentView(Activity.java:1881)
    1 frame
  9. com.ngsoft.dynamic_surveys
    LoginActivity.onCreate
    1. com.ngsoft.dynamic_surveys.activities.LoginActivity.onCreate(LoginActivity.java:74)
    1 frame
  10. Android Platform
    ActivityThread.main
    1. android.app.Activity.performCreate(Activity.java:5104)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
    4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
    5. android.app.ActivityThread.access$600(ActivityThread.java:141)
    6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
    7. android.os.Handler.dispatchMessage(Handler.java:99)
    8. android.os.Looper.loop(Looper.java:137)
    9. android.app.ActivityThread.main(ActivityThread.java:5041)
    9 frames
  11. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:511)
    2 frames
  12. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
    2 frames
  13. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame