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。

目录
相关文章
|
3月前
|
网络安全
androidstudio无法启动,Failed to create a child event loop
androidstudio无法启动,Failed to create a child event loop
100 0
ResizeObserver loop completed with undelivered notifications
ResizeObserver loop completed with undelivered notifications
|
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?
1386 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.
140 0
may have been in progress in another thread when fork() was called.
|
关系型数据库 Shell 网络安全
|
Android开发 Go
Gradle sync failed: The first result from the daemon was empty. Most likely the process died immediately after connection
Gradle sync failed: The first result from the daemon was empty. Most likely the process died immediately after connection solv...
3147 0