java.lang.IllegalArgumentException: ViewStub must have a valid layoutResource

GitHub | wenmingvs | 10 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

    GitHub comment 346#208179043

    GitHub | 1 year ago | lkwjohn
    java.lang.IllegalArgumentException: ViewStub must have a valid layoutResource
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      ViewStub must have a valid layoutResource

      at android.view.ViewStub.inflate()
    2. Android Platform
      ViewStub.setVisibility
      1. android.view.ViewStub.inflate(ViewStub.java:289)
      2. android.view.ViewStub.setVisibility(ViewStub.java:240)
      2 frames
    3. com.marshalchen.ultimaterecyclerview
      UltimateRecyclerView$3.onChanged
      1. com.marshalchen.ultimaterecyclerview.UltimateRecyclerView.updateHelperDisplays(UltimateRecyclerView.java:861)
      2. com.marshalchen.ultimaterecyclerview.UltimateRecyclerView.access$500(UltimateRecyclerView.java:61)
      3. com.marshalchen.ultimaterecyclerview.UltimateRecyclerView$3.onChanged(UltimateRecyclerView.java:816)
      3 frames
    4. Android v7
      RecyclerView$Adapter.notifyDataSetChanged
      1. android.support.v7.widget.RecyclerView$AdapterDataObservable.notifyChanged(RecyclerView.java:10366)
      2. android.support.v7.widget.RecyclerView$Adapter.notifyDataSetChanged(RecyclerView.java:6044)
      2 frames
    5. com.marshalchen.ultimaterecyclerview
      UltimateRecyclerView.setAdapter
      1. com.marshalchen.ultimaterecyclerview.UltimateRecyclerView.setAdapterInternal(UltimateRecyclerView.java:836)
      2. com.marshalchen.ultimaterecyclerview.UltimateRecyclerView.setAdapter(UltimateRecyclerView.java:668)
      2 frames
    6. com.wenming.weiswift
      MyWeiBoActivity.onCreate
      1. com.wenming.weiswift.ui.login.fragment.profile.myweibo.MyWeiBoActivity.initRecyclerView(MyWeiBoActivity.java:96)
      2. com.wenming.weiswift.ui.login.fragment.profile.myweibo.MyWeiBoActivity.onCreate(MyWeiBoActivity.java:61)
      2 frames
    7. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:6288)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2758)
      5. android.app.ActivityThread.access$900(ActivityThread.java:177)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1448)
      7. android.os.Handler.dispatchMessage(Handler.java:102)
      8. android.os.Looper.loop(Looper.java:145)
      9. android.app.ActivityThread.main(ActivityThread.java:5942)
      9 frames
    8. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    9. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
      2 frames