Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IllegalStateException: Fragment has not been attached yet. #110

Open
Airsaid opened this issue Mar 21, 2019 · 1 comment
Open

IllegalStateException: Fragment has not been attached yet. #110

Airsaid opened this issue Mar 21, 2019 · 1 comment

Comments

@Airsaid
Copy link

Airsaid commented Mar 21, 2019

  • 错误日志:
1 android.support.v4.app.Fragment.M(Unknown Source)
--
2 android.support.v4.app.Fragment.u(Unknown Source)
3 com.app.hubert.guide.core.Controller.void addListenerFragment()(Unknown Source)
4 ##_parent_##1##_parent_##
5 ##_child_## android.content.SharedPreferences access$600(com.app.hubert.guide.core.Controller)##_child_##
6 com.app.hubert.guide.core.Controller.void showGuidePage()(Unknown Source)
7 ##_parent_##1##_parent_##
8 ##_child_## void access$400(com.app.hubert.guide.core.Controller)##_child_##
9 com.app.hubert.guide.core.Controller$1.void run()(Unknown Source)
10 android.os.Handler.handleCallback(Handler.java:751)
11 android.os.Handler.dispatchMessage(Handler.java:95)
12 android.os.Looper.loop(Looper.java:154)
13 android.app.ActivityThread.main(ActivityThread.java:6146)
14 java.lang.reflect.Method.invoke(Native Method)
15 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
16 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
  • 系统版本:Android 7.0

  • 设备信息:SMART Champ 4.0

iamrain2008 pushed a commit to iamrain2008/NewbieGuide that referenced this issue Jun 27, 2019
When we call getChildFragmentManager, if fragment wasn't added (mHost == null), it will throw IllegalStateException "Fragment has not been attached yet".
huburt-Hu added a commit that referenced this issue Jun 27, 2019
@cooliceman
Copy link

Fatal Exception: java.lang.IllegalStateException: Fragment has not been attached yet. at android.support.v4.app.Fragment.instantiateChildFragmentManager + 2383(Fragment.java:2383) at android.support.v4.app.Fragment.getChildFragmentManager + 845(Fragment.java:845) at com.app.hubert.guide.core.Controller.removeListenerFragment + 291(Controller.java:291) at com.app.hubert.guide.core.Controller.showNextOrRemove + 192(Controller.java:192) at com.app.hubert.guide.core.Controller.access$700 + 39(Controller.java:39) at com.app.hubert.guide.core.Controller$3.onGuideLayoutDismiss + 172(Controller.java:172) at com.app.hubert.guide.core.GuideLayout.dismiss + 255(GuideLayout.java:255) at com.app.hubert.guide.core.GuideLayout.remove + 247(GuideLayout.java:247) at com.app.hubert.guide.core.GuideLayout$2.onClick + 210(GuideLayout.java:210) at android.view.View.performClick + 4508(View.java:4508) at android.view.View$PerformClick.run + 18675(View.java:18675)

same problem at removeListenerFragment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants