Activity not started, its current task has been brought to the front

来源:互联网 发布:linux防火墙配置详解 编辑:程序博客网 时间:2024/05/22 05:32

运行程序时提出了这个一个警告:Activity not started, its current task has been brought to the front 。

解答:因为你的模拟器中还有东西在运行,也就是你要运行的activity已经有一个在模拟器中运行了。
不要以认为模拟器退出到桌面了就没有东西在跑了。在你调试的时候异常关闭的程序有可能就有activity在运行。

解决方法project->clean。

原创粉丝点击