java.lang.reflect.InvocationTargetException

GitHub | Gonzom | 5 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.

Root Cause Analysis

  1. java.lang.IllegalStateException

    Invalid usage of setAdapter. Use ProgressRecyclerViewLayout.setAdapter(RecyclerCoreAdapter adapter) to Set the adapter

    at com.carrotcreative.recyclercore.widget.RecyclerCoreRecyclerView.setAdapter()
  2. com.carrotcreative.recyclercore
    RecyclerCoreRecyclerView.setAdapter
    1. com.carrotcreative.recyclercore.widget.RecyclerCoreRecyclerView.setAdapter(RecyclerCoreRecyclerView.java:32)
    1 frame
  3. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  4. com.android.layoutlib
    RecyclerViewUtil.setAdapter
    1. com.android.layoutlib.bridge.util.ReflectionUtils.invoke(ReflectionUtils.java:54)
    2. com.android.layoutlib.bridge.android.support.RecyclerViewUtil.setProperty(RecyclerViewUtil.java:127)
    3. com.android.layoutlib.bridge.android.support.RecyclerViewUtil.setProperty(RecyclerViewUtil.java:121)
    4. com.android.layoutlib.bridge.android.support.RecyclerViewUtil.setAdapter(RecyclerViewUtil.java:63)
    4 frames
  5. Android Platform
    LayoutInflater.inflate
    1. android.view.BridgeInflater.setupViewInContext(BridgeInflater.java:385)
    2. android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:262)
    3. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
    4. android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:858)
    5. android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:70)
    6. android.view.LayoutInflater.rInflate(LayoutInflater.java:834)
    7. android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
    8. android.view.LayoutInflater.inflate(LayoutInflater.java:518)
    9. android.view.LayoutInflater.inflate(LayoutInflater.java:426)
    9 frames
  6. com.carrotcreative.recyclercore
    ProgressRecyclerViewLayout.<init>
    1. com.carrotcreative.recyclercore.widget.ProgressRecyclerViewLayout.<init>(ProgressRecyclerViewLayout.java:78)
    2. com.carrotcreative.recyclercore.widget.ProgressRecyclerViewLayout.<init>(ProgressRecyclerViewLayout.java:67)
    2 frames
  7. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    4 frames
  8. JetBrains android
    ViewLoader.loadView
    1. org.jetbrains.android.uipreview.ViewLoader.createNewInstance(ViewLoader.java:465)
    2. org.jetbrains.android.uipreview.ViewLoader.loadClass(ViewLoader.java:172)
    3. org.jetbrains.android.uipreview.ViewLoader.loadView(ViewLoader.java:105)
    3 frames
  9. com.android.tools
    LayoutlibCallbackImpl.loadView
    1. com.android.tools.idea.rendering.LayoutlibCallbackImpl.loadView(LayoutlibCallbackImpl.java:186)
    1 frame
  10. Android Platform
    LayoutInflater.inflate
    1. android.view.BridgeInflater.loadCustomView(BridgeInflater.java:334)
    2. android.view.BridgeInflater.loadCustomView(BridgeInflater.java:345)
    3. android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:245)
    4. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
    5. android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:858)
    6. android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:70)
    7. android.view.LayoutInflater.rInflate(LayoutInflater.java:834)
    8. android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
    9. android.view.LayoutInflater.inflate(LayoutInflater.java:518)
    10. android.view.LayoutInflater.inflate(LayoutInflater.java:397)
    10 frames
  11. com.android.layoutlib
    Bridge.createSession
    1. com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:324)
    2. com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:429)
    2 frames
  12. com.android.tools.sdk-common
    LayoutLibrary.createSession
    1. com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:389)
    1 frame
  13. com.android.tools
    RenderTask$2.compute
    1. com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:548)
    2. com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:533)
    2 frames
  14. IDEA
    ApplicationImpl.runReadAction
    1. com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:966)
    1 frame
  15. com.android.tools
    RenderTask.lambda$inflate$72
    1. com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:533)
    2. com.android.tools.idea.rendering.RenderTask.lambda$inflate$72(RenderTask.java:659)
    2 frames
  16. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
    2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    4. java.lang.Thread.run(Thread.java:745)
    4 frames