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

简介: 运行错误:Activity not started, its current task has been brought to the front 。 原因分析:因为你的模拟器中还有东西在运行,也就是你要运行的activity已经有一个在模拟器中运行了。

运行错误:Activity not started, its current task has been brought to the front 。

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

解决方法:project->clean。

目录
相关文章
已解决 RuntimeError: There is no current event loop in thread ‘Thread-1‘.
Jetson Xavier NX 报错 RuntimeError: There is no current event loop in thread 'Thread-1'.异常错误,已解决
555 0
已解决 RuntimeError: There is no current event loop in thread ‘Thread-1‘.
|
Java Spring
Redisson BUG: Failed to submit a listener notification task. Event loop shut down?
Redisson BUG: Failed to submit a listener notification task. Event loop shut down?
1398 0
|
Python
may have been in progress in another thread when fork() was called.
may have been in progress in another thread when fork() was called.
141 0
may have been in progress in another thread when fork() was called.
|
关系型数据库 Shell 网络安全
|
存储 数据库
svn报错:“Previous operation has not finished; run 'cleanup' if it was interrupted“
之前也遇到过这个问题,不过让朋友帮忙解决的。这次又碰上了,记不起怎么弄的来了。       这是在网上查的方法。   本地.svn\wc.db数据库文件里面存储了svn的operation,表名是work_queue。
1062 0
|
Java Android开发 调度
Android Priority Job Queue (Job Manager)(一)
 Android Priority Job Queue (Job Manager)(一) 一、为什么要引入Android Priority Job Queue (Job Manager)?如今的APP开发中,几乎绝大多数APP没有不需要后台线程操作和运行的任务,Android平台自身提供了一些后台线程的编程实现模型和API。
787 0
Can't create handler inside thread that has not called Looper.prepare()
版权声明:本文为博主原创文章,转载请标明出处。 https://blog.csdn.net/chaoyu168/article/details/52163029 最近做项目时出现个问题。
1205 0