Java – why does “libcore.io.errnoexception: open failed: enoent” appear when running the ioio Mint application?
•
Java
I'm trying to make a simple application that runs on an Android device (Alcatel one touch 4030d, Android 4.1.1) and reads data from the analog input pin of ioio Mint through Bluetooth
I received the error given below What does it mean and how can I solve 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
Update 1 (11.06.2013 00:40 MSK): migrating applications from API level 10 to API level 15 is not helpful
Solution
I'm just guessing here, but it seems that you're trying to open the status file located in / proc / mtprof directory This error indicates that there is no file named status in this location, so please try searching the status file you are trying to open You should then be able to correct the file location in the program
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码