老师,这是闪退提示的信息,看不太懂
05-09 22:39:09.401 2891-2891/com.example.a25071.myapplication D/AndroidRuntime: Shutting down VM
--------- beginning of crash
05-09 22:39:09.410 2891-2891/com.example.a25071.myapplication E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.a25071.myapplication, PID: 2891
java.lang.ClassCastException: com.example.a25071.menudemo.MainActivity$3 cannot be cast to android.view.ActionMode$Callback
at com.example.a25071.menudemo.MainActivity$1.onLongClick(MainActivity.java:34)
at android.view.View.performLongClickInternal(View.java:6404)
at android.view.View.performLongClick(View.java:6362)
at android.widget.TextView.performLongClick(TextView.java:11004)
at android.view.View.performLongClick(View.java:6380)
at android.view.View$CheckForLongPress.run(View.java:24942)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:192)
at android.app.ActivityThread.main(ActivityThread.java:6706)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:826)
05-09 22:39:09.493 2891-2891/com.example.a25071.myapplication I/Process: Sending signal. PID: 2891 SIG: 9
正在回答 回答被采纳积分+1
相似问题
登录后可查看更多问答,登录/注册
- 参与学习 人
- 提交作业 1789 份
- 解答问题 2907 个
Android大楼Java起,本阶段是Android攻城狮培养计划的第一部分语法与界面基础篇,将带大家从0开始入门Android开发。
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星