java 在 dalvik.system.NativeStart.main(Native Method) 崩溃

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12177900/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-31 07:53:50  来源:igfitidea点击:

Crash at dalvik.system.NativeStart.main(Native Method)

javaandroiddalvik

提问by Kirill Muzykov

Just got error report at Google Play (ex. Android Market) publisher interface.

刚刚在 Google Play(例如 Android Market)发布者界面收到错误报告。

Here is fullstacktrace:

这是完整的堆栈跟踪:

java.lang.OutOfMemoryError: [memory exhausted] at dalvik.system.NativeStart.main(Native Method)

java.lang.OutOfMemoryError: [memory exhausted] at dalvik.system.NativeStart.main(Native Method)

That's it. As far as I understand it crashed without even reaching my code. Is there something I should do or should I simply ignore this error? How could this happen?

而已。据我所知,它甚至没有到达我的代码就崩溃了。有什么我应该做的还是我应该简单地忽略这个错误?这怎么会发生?

采纳答案by Edward Dale

Ignore it, there's nothing you can do. In some cases, you'll get an OutOfMemoryErrorwith a reasonable stack trace. These are actionable. What you've pasted isn't.

无视它,你无能为力。在某些情况下,您会得到OutOfMemoryError一个合理的堆栈跟踪。这些是可操作的。你粘贴的不是。

回答by iTurki

I think it is an error not related to your app. It is related to the system (phone system) not able to handle the processes running on it in terms of memory. And your process gets selected to be the victim to kill.

我认为这是一个与您的应用程序无关的错误。它与系统(电话系统)在内存方面无法处理在其上运行的进程有关。并且您的进程被选为要杀死的受害者。

回答by user3420730

Perhaps You would have forgot add your destination activity in manifest file. Adding Activity in Manifest Worked for me.

也许您会忘记在清单文件中添加目标活动。在清单中添加活动对我有用。