点击页面跳转后,出现报错

问题遇到的现象和发生背景

点击页面跳转时报错:

遇到的现象和发生背景,请写出第一个错误信息
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@a3f64eb
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@32724a
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@c35dd7d
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@38232cb
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@c52f0a4
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@3525fa7
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@d3de610
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@50b2dac
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@b3d7901
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@88bfa57

用代码块功能插入代码,请勿粘贴截图。 不用代码块回答率下降 50%
 imageButton.setOnClickListener(view -> {
            Intent intent = new Intent(this, MainActivity.class);
            startActivity(intent);
        });

运行结果及详细报错内容

W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@bfcf8f7

我的解答思路和尝试过的方法,不写自己思路的,回答率下降 60%

新建一个工程又不报错。如果粘我的代码,又会报错。

我想要达到的结果,如果你需要快速回答,请尝试 “付费悬赏”

你的这个活动在注册清单里绑定注册了吗?

解决了吗,我这也遇到了同样的问题,只是一个单纯的跳转,没有任何的参数,出现的问题和你一样。