java.io.IOException

Cannot run program "adb": error=2, No such file or directory


Samebug tips1

This is a bug in some versions of the Arduino IDE. Try updating to the version 1.6.12 or further.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.


Solutions on the web20444

Solution icon of github
via GitHub by Honghe
, 10 months ago
Cannot run program "adb": error=2, No such file or directory

Solution icon of github
Cannot run program "adb": error=2, No such file or directory Failed to initialize framework

Solution icon of web
Cannot run program "adb": error=2, No such file or directory

Solution icon of github
via GitHub by ChethanGKC
, 6 months ago
Cannot run program "adb": error=2, No such file or directory

Solution icon of googlegroups
via Google Groups by Neo, 1 year ago
Cannot run program "adb": java.io.IOException: error=2, No such file or directory

Solution icon of stackoverflow
Cannot run program "adb": error=2, No such file or directory

Solution icon of github
via GitHub by Honghe
, 10 months ago
Cannot run program "adb": error=2, No such file or directory

Solution icon of github
via GitHub by Honghe
, 10 months ago
Cannot run program "adb": error=2, No such file or directory

Solution icon of github
Cannot run program "adb" (in directory "/Users/zhenfangzhang/android/example/app"): error=2, No such file or directory

Solution icon of stackoverflow
via Stack Overflow by P-RAD
, 1 year ago
Cannot run program "/var/lib/jenkins/tools/android-sdk/platform-tools/adb": error=2, No such file or directory

Stack trace

  • java.io.IOException: Cannot run program "adb": error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) at pb.main(pb.java:24) Caused by: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.<init>(UNIXProcess.java:248) at java.lang.ProcessImpl.start(ProcessImpl.java:134) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) ... 1 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Once, 8 months ago
Samebug visitor profile picture
Unknown user
Once, 8 months ago
8 times, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
151 more bugmates