java.lang.IllegalStateException: Configuration cannot be changed after the prompt is first displayed.

GitHub | TheBachelor | 5 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    GitHub comment 161#267067652

    GitHub | 5 months ago | TheBachelor
    java.lang.IllegalStateException: Configuration cannot be changed after the prompt is first displayed.
  2. 0

    GitHub comment 161#269911491

    GitHub | 5 months ago | TheBachelor
    java.lang.IllegalStateException: Configuration cannot be changed after the prompt is first displayed.
  3. 0

    Check if view is being rendered by Android Studio Layout Preview Editor

    GitHub | 1 year ago | drjunior
    java.lang.IllegalStateException: You must call initSharedInstance before calling getSharedInstance.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 146#208124063

    GitHub | 1 year ago | hisham2007
    android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.github.stkent.amplify.prompt.BasePromptView$SavedState
  6. 0
    samebug tip
    When you use findViewById inside an activity it is going to look for a View inside your main_activity.xml. If it's not there, it throws this exception, try to use the right view to call findviewById.

    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.IllegalStateException

      Configuration cannot be changed after the prompt is first displayed.

      at com.github.stkent.amplify.prompt.BasePromptView.applyBaseConfig()
    2. com.github.stkent
      DefaultLayoutPromptView.onRestoreInstanceState
      1. com.github.stkent.amplify.prompt.BasePromptView.applyBaseConfig(BasePromptView.java:279)
      2. com.github.stkent.amplify.prompt.BasePromptView.onRestoreInstanceState(BasePromptView.java:147)
      3. com.github.stkent.amplify.prompt.DefaultLayoutPromptView.onRestoreInstanceState(DefaultLayoutPromptView.java:85)
      3 frames
    3. Android Platform
      ViewGroup.dispatchThawSelfOnly
      1. android.view.View.dispatchRestoreInstanceState(View.java:16037)
      2. android.view.ViewGroup.dispatchThawSelfOnly(ViewGroup.java:3450)
      2 frames
    4. com.github.stkent
      BasePromptView.dispatchRestoreInstanceState
      1. com.github.stkent.amplify.prompt.BasePromptView.dispatchRestoreInstanceState(BasePromptView.java:161)
      1 frame
    5. Android Platform
      View.restoreHierarchyState
      1. android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3436)
      2. android.view.View.restoreHierarchyState(View.java:16015)
      2 frames
    6. Android Support v4
      FragmentManagerImpl$1.run
      1. android.support.v4.app.Fragment.restoreViewState(Fragment.java:465)
      2. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1094)
      3. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1252)
      4. android.support.v4.app.BackStackRecord.popFromBackStack(BackStackRecord.java:979)
      5. android.support.v4.app.FragmentManagerImpl.popBackStackState(FragmentManager.java:1670)
      6. android.support.v4.app.FragmentManagerImpl$2.run(FragmentManager.java:577)
      7. android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1617)
      8. android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:517)
      8 frames
    7. Android Platform
      ActivityThread.main
      1. android.os.Handler.handleCallback(Handler.java:739)
      2. android.os.Handler.dispatchMessage(Handler.java:95)
      3. android.os.Looper.loop(Looper.java:158)
      4. android.app.ActivityThread.main(ActivityThread.java:7229)
      4 frames
    8. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    9. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
      2 frames