java.lang.IllegalStateException: Cannot add header view to grid -- setAdapter has already been called.

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

    App crashes regularly (connecting to ownCloud 9.0.2 )

    GitHub | 10 months ago | Bugsbane
    java.lang.IllegalStateException: Cannot add header view to grid -- setAdapter has already been called.
  2. 0

    IllegalStateException in GridView

    GitHub | 1 year ago | cornzy
    java.lang.IllegalStateException: Cannot add header view to grid -- setAdapter has already been called.
  3. 0

    Could not find a method saveData(View)

    Google Groups | 7 months ago | Giuseppe Guarino
    java.lang.IllegalStateException: Could not find a method saveData(View) in the activity class com.example.giuse.secondly.NewSheet for onClick handler on view class android.widget.Button with id 'button_save' at android.view.View$1.onClick(View.java:4007) at android.view.View.performClick(View.java:4780) at android.view.View$PerformClick.run(View.java:19866) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Cannot add header view to grid -- setAdapter has already been called.

      at third_parties.in.srain.cube.GridViewWithHeaderAndFooter.addFooterView()
    2. third_parties.in.srain
      GridViewWithHeaderAndFooter.addFooterView
      1. third_parties.in.srain.cube.GridViewWithHeaderAndFooter.addFooterView(GridViewWithHeaderAndFooter.java:183)
      1 frame
    3. com.owncloud.android
      FileDisplayActivity.onOptionsItemSelected
      1. com.owncloud.android.ui.fragment.ExtendedListFragment.setFooterEnabled(ExtendedListFragment.java:533)
      2. com.owncloud.android.ui.fragment.ExtendedListFragment.setFooterText(ExtendedListFragment.java:559)
      3. com.owncloud.android.ui.fragment.OCFileListFragment.updateLayout(OCFileListFragment.java:855)
      4. com.owncloud.android.ui.fragment.OCFileListFragment.listDirectory(OCFileListFragment.java:830)
      5. com.owncloud.android.ui.fragment.OCFileListFragment.onBrowseUp(OCFileListFragment.java:541)
      6. com.owncloud.android.ui.activity.FileDisplayActivity.onBackPressed(FileDisplayActivity.java:857)
      7. com.owncloud.android.ui.activity.FileDisplayActivity.onOptionsItemSelected(FileDisplayActivity.java:560)
      7 frames
    4. Android Platform
      Activity.onMenuItemSelected
      1. android.app.Activity.onMenuItemSelected(Activity.java:3137)
      1 frame
    5. Android Support v4
      FragmentActivity.onMenuItemSelected
      1. android.support.v4.app.FragmentActivity.onMenuItemSelected(FragmentActivity.java:361)
      1 frame
    6. Android v7
      ToolbarWidgetWrapper$1.onClick
      1. android.support.v7.app.AppCompatActivity.onMenuItemSelected(AppCompatActivity.java:147)
      2. android.support.v7.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:100)
      3. android.support.v7.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:100)
      4. android.support.v7.widget.ToolbarWidgetWrapper$1.onClick(ToolbarWidgetWrapper.java:194)
      4 frames
    7. Android Platform
      ActivityThread.main
      1. android.view.View.performClick(View.java:5254)
      2. android.view.View$PerformClick.run(View.java:21173)
      3. android.os.Handler.handleCallback(Handler.java:739)
      4. android.os.Handler.dispatchMessage(Handler.java:95)
      5. android.os.Looper.loop(Looper.java:145)
      6. android.app.ActivityThread.main(ActivityThread.java:6838)
      6 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:1404)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
      2 frames