question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Intellij IDEA does not create new project properly, java.io.IOException: CreateProcess error=5, Access is denied

See original GitHub issue

What 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:closed
  • Created 6 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
mit-mitcommented, May 11, 2017

Thanks!

0reactions
pqcommented, May 11, 2017

Wow. Thanks @claudfernandes for all the thoughtful follow-up!

cc @alexander-doroshko as an FYI.

Read more comments on GitHub >

github_iconTop Results From Across the Web

java run error create process error=5 access is denied.
IdeaIC2017.3\system\compile-server"): CreateProcess error=5, Access is denied[/code]. I pointed it to the right folder. Would this have ...
Read more >
Cannot run program: CreateProcess error=5, Access is denied
I wanted to start my program, but I get the following error message: Cannot run program "C:\Program Files (x86)\JetBrains\DataGrip...
Read more >
Cannot run program: CreateProcess error=5
Everything I try to do, from defining PHP to trying to open the browser, I get the error.I tried to install again and...
Read more >
runnerw.exe: CreateProcess failed with error 5: Access is ...
Hi, For my pycharm project, I went to Setting>> Version Control >> Git>> Path to Git Executable. Here, I entered the...
Read more >
org.picocontainer.defaults ...
IOException Access is denied Follow ... No search seems to give me the answer. ... ApplicationImpl - InvocationTargetException: java.io.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found