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


Solutions on the web2

Solution icon of github
via GitHub by TheBachelor
, 9 months ago
Configuration cannot be changed after the prompt is first displayed.

Solution icon of github
via GitHub by TheBachelor
, 9 months ago
Configuration cannot be changed after the prompt is first displayed.

Stack trace

java.lang.IllegalStateException: Configuration cannot be changed after the prompt is first displayed.
	at com.github.stkent.amplify.prompt.BasePromptView.applyBaseConfig(BasePromptView.java:279)
	at com.github.stkent.amplify.prompt.BasePromptView.onRestoreInstanceState(BasePromptView.java:147)
	at com.github.stkent.amplify.prompt.DefaultLayoutPromptView.onRestoreInstanceState(DefaultLayoutPromptView.java:85)
	at android.view.View.dispatchRestoreInstanceState(View.java:16037)
	at android.view.ViewGroup.dispatchThawSelfOnly(ViewGroup.java:3450)
	at com.github.stkent.amplify.prompt.BasePromptView.dispatchRestoreInstanceState(BasePromptView.java:161)
	at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3436)
	at android.view.View.restoreHierarchyState(View.java:16015)
	at android.support.v4.app.Fragment.restoreViewState(Fragment.java:465)
	at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1094)
	at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1252)
	at android.support.v4.app.BackStackRecord.popFromBackStack(BackStackRecord.java:979)
	at android.support.v4.app.FragmentManagerImpl.popBackStackState(FragmentManager.java:1670)
	at android.support.v4.app.FragmentManagerImpl$2.run(FragmentManager.java:577)
	at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1617)
	at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:517)
	at android.os.Handler.handleCallback(Handler.java:739)
	at android.os.Handler.dispatchMessage(Handler.java:95)
	at android.os.Looper.loop(Looper.java:158)
	at android.app.ActivityThread.main(ActivityThread.java:7229)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.