Android的工作室静态= libcore.io.Posix ENOENT例外 [英] Android Studio static = libcore.io.Posix ENOENT exception

查看:1591
本文介绍了Android的工作室静态= libcore.io.Posix ENOENT例外的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在模拟器上运行我的应用程序。它用于工作,但现在它不正确加载。调试的错误,我得到的是:

I am trying to run my app on a emulator. It used to work but now it does not load properly. The debug error I get is:

static = libcore.io.Posix
  Exception = {android.system.ErrnoException@3564}

当我右键单击例外线和复制值获取:

When I right click on the Exception line and Copy Value I get:

  android.system.ErrnoException: stat failed: ENOENT (No such file or directory)

我的应用程序没有任何文件IO程序性所以异常必须涉及到一些系统要求。

My app does not have any file io programed so the exception must relate to something the system requires.

回望LogCat中我得到ENOENT匹配,几行之前是:

Looking back in the LogCat I get a match for ENOENT, several lines before are:

com.google.process.location W/art? Suspending all threads took: 7.795ms
com.google.process.location I/art? Background partial concurrent mark sweep GC freed 2094(165KB) AllocSpace objects, 0(0B) LOS objects, 40% free, 3MB/5MB, paused 9.486ms total 274.854ms
com.google.process.location I/GCoreUlr? DispatchingService.onCreate()
com.google.process.location I/GCoreUlr? WorldUpdater received intent Intent { act=com.google.android.location.reporting.ACTION_UPDATE_WORLD cmp=com.google.android.gms/com.google.android.location.reporting.service.DispatchingService (has extras) } with receiverAction android.location.PROVIDERS_CHANGED
com.google.process.location E/copresGcore? Couldn't load settings: /data/data/com.google.android.gms/files/copresence_settings: open failed: ENOENT (No such file or directory)

我看不出有什么文件,它不能读/写。我没有IO编程任何文件,但我使用的sqlite3的,也许到系统无法找到数据库文件。

I cannot see what file it cannot read/write to. I do not have any file IO programmed but I am using sqlite3, maybe to system cannot find the database file.

要从这个错误了一段时间,我创建Android Studio中的新项目得到一定缓解。关闭AS和复制我的源文件复制到新AS项目中。然后,当我跑新项目,错误已经走了。这几个小时的编程和编辑后回来。

To get some relief from this error for a while I created a new project in Android Studio. Shut down AS and copied my source files into the new AS project. Then when I ran the new project, the error had gone. It came back after several hours of programing and editing.

我已经看过了互联网2天了都没有成功的解决方案。任何帮助将是AP preciated。

I have looked for solutions on the internet for 2 days now without success. Any help would be appreciated.

进一步了解详细:结果
如果我运行(不调试)在模拟器上或它的工作设备的应用程序。结果
如果我上运行模拟器或它与同libcore异常崩溃的设备/调试。结果
部分结论:它是与调试

Further details:
If I run (not debug) the app on the emulator or the device it works.
If I run/debug on the emulator or the device it crashes with the same libcore exception.
Part conclusion: it is something to do with debugging.

我想我曾经碰到过一个解决方法:

I thought I had come across a workaround:


  1. 我关闭现有的AVD

  2. 我从AS AVD管理运行AVD

  3. 我重新安装应用程序:ADB安装-r C:\\用户\\ APP-debug.apk

  4. 我跑从AS应用推调试按钮

这一次得手那么libcore出现的错误。这种解决方法并不好,即使它的工作,作为编辑运行/周期过长。

This worked once then the libcore error appeared. This workaround is not good, even if it worked, as the edit run/cycle is too long.

我觉得唯一的办法就是断点的谷歌源,以确定它是什么的除外。我花了很多时间来搜索互联网,以找出如何做到这一点没有成功。如果任何人都可以点我的相关文章我将不胜感激。

I think the only way is to breakpoint the Google source to determine what it is excepting on. I spent much time searching the internet to find out how to do this without success. If anybody can point me to relevant articles I would be grateful.

推荐答案

我提出了Android开源项目的问题126510.的意见通过jcossi ... @ gmail.com给出了答案。我已经转向了Java异常断点以检查任何异常。当我重新启动该项目这导致的问题。我看来,应用程序可以使用异常处理不只是错误。所以,如果你使用任何异常一定要记得再次尽快禁用它。

I raised Android Open Source Project issue 126510. The comments by jcossi...@gmail.com gave the answer. I had turned on "Java Exception Breakpoints" with "Any exception" checked. This caused the problem when I restarted the project. I seems that applications may use exception handling for not just errors. So if you use "Any exception" be sure to remember to disable it again ASAP.

这篇关于Android的工作室静态= libcore.io.Posix ENOENT例外的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆