Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Android

Natansh Pandya
Natansh Pandya
2,810 Points

Error

"C:\Program Files\android-studio\sdk\tools\emulator.exe" -avd Nexus_5_API_22 -netspeed full -netdelay none com.intellij.execution.process.ProcessNotCreatedException: Cannot run program "C:\Program Files\android-studio\sdk\tools\emulator.exe": CreateProcess error=2, The system cannot find the file specified at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:252) at org.jetbrains.android.util.AndroidUtils.executeCommand(AndroidUtils.java:459) at org.jetbrains.android.facet.AndroidFacet$1.run(AndroidFacet.java:592) at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:419) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:149) Caused by: java.io.IOException: Cannot run program "C:\Program Files\android-studio\sdk\tools\emulator.exe": CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047) at com.intellij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:261) at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:248) ... 9 more Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.<init>(ProcessImpl.java:385) at java.lang.ProcessImpl.start(ProcessImpl.java:136) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028) ... 11 more