threadid=1: thread exiting with uncaught exception (group=0xb2a86d70)

时间:2023-03-08 16:37:07

这个错误是程序运行成功,但是一在虚拟机上运行就报“停止运行了”,如图:

threadid=1: thread exiting with uncaught exception (group=0xb2a86d70)

然后我们查看一个日志信息:

threadid=1: thread exiting with uncaught exception (group=0xb2a86d70)

查了好久,终于 搞好了,原因是安卓目标SDK版本太高了,我这里创建好默认是这样的如图:

threadid=1: thread exiting with uncaught exception (group=0xb2a86d70)

只要把21改小一点就可以了,我这里改成8,虽然报警告,但是可以运行了

threadid=1: thread exiting with uncaught exception (group=0xb2a86d70)