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

 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)

相关文章:

  • 2021-10-30
  • 2021-05-27
  • 2021-05-29
  • 2022-12-23
  • 2021-09-19
  • 2021-08-02
  • 2022-12-23
  • 2021-08-16
猜你喜欢
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案