title: how to execute gradle wrapper/gradlew command in android studio in windows
body: <p>I am using gradle with android project in android studio, I wanna run <code>gradlew</code>command in the terminal in android studio, while I got gradlew command not found error. </p>
  
  <p>My gradle wrapper is in the directory: </p>
  
  <p><code>"C:\Users\Administrator\.gradle\wrapper\dists\gradle-4.1-all\bzyivzo6n839fup2jbap0tjew\gradle-4.1\bin"</code></p>
  
  <p>In this directory, there are following contents:</p>
  
  <ol>
  <li>Directory named .gradle</li>
  <li>File named gradle </li>
  <li>File named gradle.bat. </li>
  </ol>
  
  <p>I've tried to run
      <code>"gradle -v"</code> 
  in this directory, it works fine. </p>
  
  <p>But when I tried to run</p>
  
  <pre><code>gradle wrapper --gradle-version 4.1
  </code></pre>
  
  <p><strong>I got the error ：</strong></p>
  
  <blockquote>
    <p>"Some problems were found with the configuration of task ':wrapper'.
    Cannot write to file 'C:\Users\Administrator.gradle\wrapper\dists\gradle-4.1-all\bzyivzo6n839fup2jbap0tjew\gradle-4.1\bin\gradle\wrapper\gradle-wrapper.jar' specified for property 'jarFile', as ancestor 'C:\Use
    rs\Administrator.gradle\wrapper\dists\gradle-4.1-all\bzyivzo6n839fup2jbap0tjew\gradle-4.1\bin\gradle' is not a directory.”</p>
  </blockquote>
  
  <p>My project is in the directory <code>D:\ASWorkspace\MyApp</code>, I'm puzzled about if I wanna to execute gradlew command, I should execute it in which directory? in my android project or gradle project? and how to execute it without error</p>