Intellij IDEA does not create new project properly, java.io.IOException: CreateProcess error=5, Access is denied
See original GitHub issueWhat happened
Creating a new Project on IntelliJ IDEA, it show me only 3 files f_demo7.iml, f_demo7.ipr, f_demo.iws. But if I run Flutter create f_demo7 on the command line, it creates the project normally.
I am using Windows 10, and a new Flutter installation using master branch, and also run flutter doctor.
C:\Users\claud\Development\flutter>where flutter C:\Users\claud\Development\flutter\bin\flutter C:\Users\claud\Development\flutter\bin\flutter.bat
Flutter Doctor result
Downloading android-arm-profile tools... 1.2s
Downloading android-arm-release tools... 1.1s
[√] Flutter (on Microsoft Windows [Version 10.0.14393], channel @u)
• Flutter at C:\Users\claud\Development\flutter
• Framework revision 2f590eccbc (6 hours ago), 2017-05-10 22:08:27 -0700
• Engine revision f2581c9bcc
• Tools Dart version 1.23.0-dev.11.11
[√] Android toolchain - develop for Android devices (Android SDK 25.0.3)
• Android SDK at C:\Users\claud\AppData\Local\Android\sdk
• Platform android-25, build-tools 25.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version: OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
[√] Android Studio (version 2.3)
• Android Studio at C:\Program Files\Android\Android Studio
• Gradle version 3.2
• Java version: OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
[√] IntelliJ IDEA Ultimate Edition (version 2016.2)
• Dart plugin version 162.2924
• Flutter plugin version 12.1
[√] Connected devices
• ONEPLUS A3003 • a7cd8cad • android-arm • Android 7.1.1 (API 25)
Version information
IntelliJ IDEA 2016.2.5
• Flutter plugin 12.1
• Dart plugin 162.2924
* Windows 10
Error getting Flutter sdk information.
Exception
Unable to start process to watch Flutter devices: Cannot run program “C:\Users\claud\Development\flutter\bin\flutter.bat” (in directory “C:\Users\claud\Development\flutter”): CreateProcess error=5, Access is denied
com.intellij.execution.process.ProcessNotCreatedException: Cannot run program "C:\Users\claud\Development\flutter\bin\flutter.bat" (in directory "C:\Users\claud\Development\flutter"): CreateProcess error=5, Access is denied
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:358)
at com.intellij.execution.process.OSProcessHandler.<init>(OSProcessHandler.java:46)
at io.flutter.run.daemon.DeviceDaemon$Command.start(DeviceDaemon.java:159)
at io.flutter.run.daemon.DeviceService.chooseNextDaemon(DeviceService.java:187)
at io.flutter.utils.Refreshable.runInBackground(Refreshable.java:214)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Cannot run program "C:\Users\claud\Development\flutter\bin\flutter.bat" (in directory "C:\Users\claud\Development\flutter"): CreateProcess error=5, Access is denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at com.intellij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:368)
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:354)
... 11 more
Caused by: java.io.IOException: CreateProcess error=5, Access is denied
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
at java.lang.ProcessImpl.start(ProcessImpl.java:137)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 13 more
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (5 by maintainers)
Top GitHub Comments
Thanks!
Wow. Thanks @claudfernandes for all the thoughtful follow-up!
cc @alexander-doroshko as an FYI.