title: Gradle sync failed: Failed to create parent directory "path" when creating directory
body: <p>I have a problem with my Gradle and Android Studio. I reinstalled Android studio and Im working with libGDX then when I try to compile my project, the terminal says me that.</p>
  
  <blockquote>
    <p>FAILURE: Build failed with an exception.</p>
    
    <ul>
    <li><p>What went wrong:
    Could not create service of type ScriptPluginFactory using BuildScopeServices.createScriptPluginFactory().
    Could not create service of type CrossBuildFileHashCache using BuildSessionScopeServices.createCrossBuildFileHashCache().</p></li>
    <li><p>Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.</p></li>
    </ul>
    
    <p>BUILD FAILED in 1s
    Failed to create parent directory 'C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Android Studio.gradle' when creating directory 'C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Android Studio.gradle\4.0\fileHashes'</p>
  </blockquote>
  
  <p>This error appear with this:</p>
  
  <blockquote>
    <p>13:19:16: Executing task 'desktop:run'...</p>
    
    <p>Download <a href="https://services.gradle.org/distributions/gradle-4.0-bin.zip" rel="nofollow noreferrer">https://services.gradle.org/distributions/gradle-4.0-bin.zip</a> (67.52M)
    [ 97%] [ =====================================================> ] 66.07M</p>
    
    <p>Download <a href="https://services.gradle.org/distributions/gradle-4.0-bin.zip" rel="nofollow noreferrer">https://services.gradle.org/distributions/gradle-4.0-bin.zip</a> succeeded, took 8s 734ms
    Unzipping ...</p>
  </blockquote>
  
  <p>My version of Gradle: 4.4</p>
  
  <p>My version of Android Studio: 3.1.2</p>
  
  <p>If you need more information said me to put that.</p>
  
  <p>Thanks!</p>