为什么我得到" libcore.io.ErrnoException:打开失败:ENOENT"运行IOIO薄荷应用程序时? [英] Why do I get "libcore.io.ErrnoException: open failed: ENOENT" when running a IOIO Mint application?

查看:534
本文介绍了为什么我得到" libcore.io.ErrnoException:打开失败:ENOENT"运行IOIO薄荷应用程序时?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图做一个简单的应用程序,它在Android设备上运行(阿尔卡特单键4030D 的,安卓4.1.1),并从的IOIO薄荷通过蓝牙

I'm trying to make a simple application, which runs on an Android device (Alcatel One Touch 4030D, Android 4.1.1) and reads data from analog input pins of IOIO Mint via BlueTooth.

我收到如下的错误。这是什么意思,我该如何解决这个问题?

I'm getting the error given below. What does it mean and how can I fix it?

java.io.FileNotFoundException: /proc/mtprof/status: open failed: ENOENT (No such file or directory)
        at libcore.io.IoBridge.open(IoBridge.java:451)
        at java.io.FileInputStream.<init>(FileInputStream.java:78)
        at java.io.FileInputStream.<init>(FileInputStream.java:105)
        at com.android.server.am.ActivityRecord.mtProf(ActivityRecord.java:987)
        at com.android.server.am.ActivityRecord.windowsDrawn(ActivityRecord.java:775)
        at com.android.server.am.ActivityRecord$Token.windowsDrawn(ActivityRecord.java:266)
        at com.android.server.wm.WindowManagerService$H.handleMessage(WindowManagerService.java:7523)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:153)
        at com.android.server.wm.WindowManagerService$WMThread.run(WindowManagerService.java:911)
Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)
        at libcore.io.Posix.open(Native Method)
        at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
        at libcore.io.IoBridge.open(IoBridge.java:435)
        ... 9 more

更新1(2013年6月11日00:40 MSK):从迁移API级别10应用程序API级别15并没有帮助

Update 1 (11.06.2013 00:40 MSK): Migrating the application from API level 10 to API level 15 didn't help.

推荐答案

我只是猜测这里,但似乎您试图打开的状态的坐落在 / proc文件/ mtprof 的目录。该错误指示没有一个名为的状态的在该位置的文件,因此尝试运行了寻找的状态的文件,您试图打开。然后,你应该能够纠正你的程序文件位置。

I'm just guessing here, but it seems you are trying to open the status file located in the /proc/mtprof directory. The error indicates that there isn't a file named status at that location, so try running a search for the status file that you are trying to open. Then you should be able to correct the file location in your program.

这篇关于为什么我得到&QUOT; libcore.io.ErrnoException:打开失败:ENOENT&QUOT;运行IOIO薄荷应用程序时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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