title: Android studio 1.0 Gradle error 1 - The specified path was not found
body: <p>I have just installed Android studio on a win 7 and wanted to compile the first sample code but the compiling fails</p>
  
  <pre><code>Executing tasks: [:app:assembleDebug]
  
  Configuration on demand is an incubating feature.
  
  :app:preBuil
  :app:compileDebugNdk UP-TO-DATE
  :app:preDebugBuild
  :app:checkDebugManifest
  :app:preReleaseBuild
  :app:prepareComAndroidSupportAppcompatV72102Library UP-TO-DATE
  :app:prepareComAndroidSupportSupportV42102Library UP-TO-DATE
  :app:prepareDebugDependencies
  :app:compileDebugAidl UP-TO-DATE
  :app:compileDebugRenderscript UP-TO-DATE
  :app:generateDebugBuildConfig UP-TO-DATE
  :app:generateDebugAssets UP-TO-DATE
  :app:mergeDebugAssets UP-TO-DATE
  :app:generateDebugResValues UP-TO-DATE
  :app:generateDebugResources UP-TO-DATE
  :app:mergeDebugResources UP-TO-DATE
  :app:processDebugManifest UP-TO-DATE
  :app:processDebugResources UP-TO-DATE
  :app:generateDebugSources UP-TO-DATE
  :app:compileDebugJava UP-TO-DATE
  :app:preDexDebug
  
  Den angivne sti blev ikke fundet. (The specified path was not found.)
  
   FAILED
  
  Den angivne sti blev ikke fundet. (The specified path was not found.)
  
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  
  Execution failed for task ':app:preDexDebug'.
  
  &gt; com.android.ide.common.internal.LoggedErrorException: Failed to run command:
  C:\Users\Sigmac\AppData\Local\Android\sdk\build-tools\21.1.1\dx.bat --dex --output 
  C:\Users\Sigmac\AndroidStudioProjects\Voting\app\build\intermediates\pre-dexed\debug
  \classes-b6f615fe9376219a5b11445078329964f51dafd9.jar C:\Users\Sigmac
  \AndroidStudioProjects\Voting\app\build\intermediates\exploded-aar\com.android.support
  \appcompat-v7\21.0.2\classes.jar
  
  Error Code:
  1
  
  Output:
  Den angivne sti blev ikke fundet. (The specified path was not found.)
  
  * Try:
  
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option 
  to get more log output.
  
  BUILD FAILED
  
  Total time: 30.911 secs
  
  Den angivne sti blev ikke fundet. (The specified path was not found.)
  </code></pre>
  
  <p>I have tested that this eksist:
  C:\Users\Sigmac\AppData\Local\Android\sdk\build-tools\21.1.1\dx.bat</p>
  
  <p>This folder eksist but is emty
  C:\Users\Sigmac\AndroidStudioProjects\Voting\app\build\intermediates\pre-dexed\debug\</p>
  
  <p>and this eksist
  C:\Users\Sigmac\AndroidStudioProjects\Voting\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.2\classes.jar</p>
  
  <p>I have google and search this site but cant finde a solution to this</p>
  
  <p>--stacktrace, --info or --debug don't change the result</p>
  
  <p>I have tryed directly from cmd whit same result
  and I have tryed "" the path</p>
  
  <p>Can any point me to a solution?</p>