突然间出现“会话'app':启动活动时出错”吗?

时间:2019-01-09 02:31:36

标签: android

我目前正在碰到这个问题,甚至不知道为什么。

昨天运行良好,我向每个活动添加了更多代码。 我已经执行了“使缓存无效/重新启动”并重新启动了计算机。

请注意,我没有更改Manifest.xml中的任何内容,也没有向项目中添加新活动。

这是AndroidManifest.xml文件。

Range("Filters").AutoFilter Field:=2, Criteria1:=Array("false"), Operator:=xlFilterValues 'No need for a With block if you're only performing 1 method

set rng = Nothing 'Clear the rng variable before trying to assign a new range to it
On Error Resume Next
Set rng = Worksheets("By User").Range("Bulletin_List").SpecialCells(xlCellTypeVisible)
On Error Goto 0 'Restore normal On Error behaviour to trap any other unexpected errors

<?xml version="1.0" encoding="utf-8"?>

任何帮助将不胜感激。

编辑:我已经尝试过多次重建和清理。同样的错误。 该错误是在左上角弹出的小窗口,显示“正在运行的应用程序出错:找不到默认活动”。

在将“默认活动”设置中设置为“无”时,访问其他活动时,该错误会出现在logcat中。

enter image description here

这不是完整的日志,但是您可以看到它引用了LoginActivity(假定的默认活动)中的第25行,该行导致其onCreate()函数。

1 个答案:

答案 0 :(得分:0)

一周前,我遇到了完全相同的错误,here's the link to my question。我找不到错误的根源,这可能是Android Studio的错误(我在所有项目中都遇到过同样的事情)。

我已通过删除用户文件夹中的.AndroidStudio隐藏目录来解决此问题。请记住,它会删除您之前设置的所有设置,并将从头开始重置Android Studio。

相关问题