java.lang.RuntimeException: Failed to resolve attribute at index 1

GitHub | wengcan | 7 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

    Move from Activity class to AppCompatActivity class

    Stack Overflow | 5 months ago | user7160059
    java.lang.RuntimeException: Failed to resolve attribute at index 1
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    OpenCV and Android Studio: "unfortunately app has stopped"

    Stack Overflow | 9 months ago | Leonid
    java.lang.RuntimeException: Failed to resolve attribute at index 1

    2 unregistered visitors
    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.RuntimeException

      Failed to resolve attribute at index 1

      at android.content.res.TypedArray.getColorStateList()
    2. Android Platform
      TypedArray.getColorStateList
      1. android.content.res.TypedArray.getColorStateList(TypedArray.java:425)
      1 frame
    3. android.support.graphics
      VectorDrawableCompat.createFromXmlInner
      1. android.support.graphics.drawable.VectorDrawableCompat.updateStateFromTypedArray(VectorDrawableCompat.java:518)
      2. android.support.graphics.drawable.VectorDrawableCompat.inflate(VectorDrawableCompat.java:472)
      3. android.support.graphics.drawable.VectorDrawableCompat.createFromXmlInner(VectorDrawableCompat.java:436)
      3 frames
    4. Android v7
      AppCompatActivity.onCreate
      1. android.support.v7.widget.AppCompatDrawableManager$VdcInflateDelegate.createFromXmlInner(AppCompatDrawableManager.java:708)
      2. android.support.v7.widget.AppCompatDrawableManager.loadDrawableFromDelegates(AppCompatDrawableManager.java:348)
      3. android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:188)
      4. android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:181)
      5. android.support.v7.widget.AppCompatDrawableManager.checkVectorDrawableSetup(AppCompatDrawableManager.java:689)
      6. android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:186)
      7. android.support.v7.widget.TintTypedArray.getDrawableIfKnown(TintTypedArray.java:77)
      8. android.support.v7.app.AppCompatDelegateImplBase.<init>(AppCompatDelegateImplBase.java:83)
      9. android.support.v7.app.AppCompatDelegateImplV7.<init>(AppCompatDelegateImplV7.java:146)
      10. android.support.v7.app.AppCompatDelegateImplV11.<init>(AppCompatDelegateImplV11.java:28)
      11. android.support.v7.app.AppCompatDelegateImplV14.<init>(AppCompatDelegateImplV14.java:41)
      12. android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:193)
      13. android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:173)
      14. android.support.v7.app.AppCompatActivity.getDelegate(AppCompatActivity.java:511)
      15. android.support.v7.app.AppCompatActivity.onCreate(AppCompatActivity.java:71)
      15 frames
    5. com.reactnativenavigation.controllers
      SplashActivity.onCreate
      1. com.reactnativenavigation.controllers.SplashActivity.onCreate(SplashActivity.java:17)
      1 frame
    6. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:6063)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1109)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2437)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2546)
      5. android.app.ActivityThread.access$800(ActivityThread.java:154)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1430)
      7. android.os.Handler.dispatchMessage(Handler.java:102)
      8. android.os.Looper.loop(Looper.java:135)
      9. android.app.ActivityThread.main(ActivityThread.java:5453)
      9 frames
    7. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    8. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:952)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:747)
      2 frames