weixin_44371043
JLuani
2020-09-11 11:11

Android程序闪退的错误日志,求助!

  • android-studio
  • android

程序进去就初始化一个DialogFragment,在小米版本7.0会出现闪退现象,求大神帮忙解读一下错误日志,感谢
launch crash
09-09 10:13:05.349 8598 8598 E AndroidRuntime: FATAL EXCEPTION: main
09-09 10:13:05.349 8598 8598 E AndroidRuntime: Process: com.ds.dingsheng, PID: 8598
09-09 10:13:05.349 8598 8598 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ds.dingsheng/com.ds.dingsheng.activitys.EnterActivity}: androidx.fragment.app.Fragment$InstantiationException: Unable to instantiate fragment com.ds.dingsheng.views.BottomDialog: could not find Fragment constructor
09-09 10:13:05.349 8598 8598 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2747)
09-09 10:13:05.349 8598 8598 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2808)
09-09 10:13:05.349 8598 8598 E AndroidRuntime: at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4626)
09-09 10:13:05.349 8598 8598 E AndroidRuntime: at android.app.ActivityThread.-wrap19(ActivityThread.java)
09-09 10:13:05.349 8598 8598 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1549)
09-09 10:13:05.349 8598 8598 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
09-09 10:13:05.349 8598 8598 E AndroidRuntime: at android.os.Looper.loop(Looper.java:165)
09-09 10:13:05.349 8598 8598 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6375)
09-09 10:13:05.349 8598 8598 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
09-09 10:13:05.349 8598 8598 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912)
09-09 10:13:05.349 8598 8598 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:802)
09-09 10:13:05.349 8598 8598 E AndroidRuntime: Caused by: androidx.fragment.app.Fragment$InstantiationException: Unable to instantiate fragment com.ds.dingsheng.views.BottomDialog: could not find Fragment constructor

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

2条回答

为你推荐

换一换