title: The flutter tool cannot access the file
body: <p>I try to run the Flutter project but there is an error</p>
  <pre><code>Flutter failed to write to a file at
  &quot;C:\Users\Dell\flutter-development\projects\flutter_complete_guide\ios\Runner\GeneratedPluginRegistrant.h&quot;. The flutter
  tool cannot access the file.
  Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current
  user.
  </code></pre>
  <p>Versions:</p>
  <p>Flutter 1.22.4,</p>
  <p>Windows 10</p>
  <p>I tried to create a Flutter project with cmd and android-studio but the result is the same.</p>
  <p>I gave full permissions for ALL(Including Dell user) for flutter-sdk directory, flutter project and their subdirectories also.</p>
  <p>Once try to build project from scratch with <strong>flutter create myapp</strong>
  get next error</p>
  <pre><code>PS C:\src1\project&gt; flutter create myapp
  Recreating project myapp...
    myapp\android\app\src\main\res\mipmap-mdpi\ic_launcher.png (created)
  Failed to send crash report due to a network error: SocketException: OS Error: Access is denied.
  , errno = 5, address = clients2.google.com, port = 63568
  Oops; flutter has exited unexpectedly: &quot;FileSystemException: Cannot copy file to 'C:\src1\project\myapp\android\app\src\main\res\mipmap-mdpi\ic_launcher.png', path =
  'C:\src1\flutter\packages\flutter_tools\templates\app\android.tmpl\app\src\main\res\mipmap-mdpi\ic_launcher.png' (OS Error: Access is denied.
  , errno = 5)&quot;.
  </code></pre>