java.lang.IllegalArgumentException: API declarations must be interfaces.

Stack Overflow | Daggydag13 | 1 week ago
  1. 0

    API declarations must be interfaces- Retrofit

    Stack Overflow | 1 week ago | Daggydag13
    java.lang.IllegalArgumentException: API declarations must be interfaces.
  2. 0
    You have to provide valid identical number for each child items.
    via GitHub by h6ah4i
  3. 0

    NullPointerException on setMenuVisibility

    Stack Overflow | 8 months ago | MAOL
    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v4.app.Fragment.setMenuVisibility(boolean)' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    app stopped working-on clicking a listview item with custom adapter

    Stack Overflow | 1 year ago | anupriya
    java.lang.IllegalStateException: Fragment ReviewsTab{35c4d5cf} not attached to Activity
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.IllegalArgumentException

    API declarations must be interfaces.

    at retrofit2.Utils.validateServiceInterface()
  2. retrofit2
    Retrofit.create
    1. retrofit2.Utils.validateServiceInterface(Utils.java:309)
    2. retrofit2.Retrofit.create(Retrofit.java:128)
    2 frames
  3. pc.dd.vegetables_simple
    PagerAdapterVeg.getItem
    1. pc.dd.vegetables_simple.Fragments.CategoryFragment.<init>(CategoryFragment.java:42)
    2. pc.dd.vegetables_simple.Adapters.PagerAdapterVeg.getItem(PagerAdapterVeg.java:23)
    2 frames
  4. Android Support v4
    ViewPager.onMeasure
    1. android.support.v4.app.FragmentStatePagerAdapter.instantiateItem(FragmentStatePagerAdapter.java:109)
    2. android.support.v4.view.ViewPager.addNewItem(ViewPager.java:1006)
    3. android.support.v4.view.ViewPager.populate(ViewPager.java:1154)
    4. android.support.v4.view.ViewPager.populate(ViewPager.java:1088)
    5. android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1614)
    5 frames
  5. Android Platform
    FrameLayout.onMeasure
    1. android.view.View.measure(View.java:19863)
    2. android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:715)
    3. android.widget.RelativeLayout.onMeasure(RelativeLayout.java:461)
    4. android.view.View.measure(View.java:19863)
    5. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6120)
    6. android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
    6 frames
  6. Android v7
    ContentFrameLayout.onMeasure
    1. android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:135)
    1 frame
  7. Android Platform
    ViewGroup.measureChildWithMargins
    1. android.view.View.measure(View.java:19863)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6120)
    2 frames
  8. Android v7
    ActionBarOverlayLayout.onMeasure
    1. android.support.v7.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:389)
    1 frame
  9. Android Platform
    FrameLayout.onMeasure
    1. android.view.View.measure(View.java:19863)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6120)
    3. android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
    4. android.view.View.measure(View.java:19863)
    5. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6120)
    6. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1464)
    7. android.widget.LinearLayout.measureVertical(LinearLayout.java:758)
    8. android.widget.LinearLayout.onMeasure(LinearLayout.java:640)
    9. android.view.View.measure(View.java:19863)
    10. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6120)
    11. android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
    11 frames
  10. Android
    DecorView.onMeasure
    1. com.android.internal.policy.DecorView.onMeasure(DecorView.java:689)
    1 frame
  11. Android Platform
    ActivityThread.main
    1. android.view.View.measure(View.java:19863)
    2. android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2270)
    3. android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1366)
    4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1619)
    5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1254)
    6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6306)
    7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:874)
    8. android.view.Choreographer.doCallbacks(Choreographer.java:686)
    9. android.view.Choreographer.doFrame(Choreographer.java:621)
    10. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:860)
    11. android.os.Handler.handleCallback(Handler.java:751)
    12. android.os.Handler.dispatchMessage(Handler.java:95)
    13. android.os.Looper.loop(Looper.java:154)
    14. android.app.ActivityThread.main(ActivityThread.java:6095)
    14 frames
  12. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  13. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
    2 frames