title: 'Gradle project Sync failed. Basic functionality will not work properly.' How can I solve this?
body: <p>All of my old projects have been working fine. Then one day, whenever I make a new project, I get :</p>
  
  <p><a href="https://i.stack.imgur.com/Bxnzu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Bxnzu.png" alt="enter image description here"></a></p>
  
  <p>And in the lower window, Messages Gradle Synch :</p>
  
  <p><a href="https://i.stack.imgur.com/QGoVv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QGoVv.png" alt="enter image description here"></a></p>
  
  <p>Some of the solutions I tried :</p>
  
  <p><a href="https://stackoverflow.com/questions/36039815/how-to-use-the-latest-gradle-version-in-android-studio">How to use the latest gradle version in Android Studio</a></p>
  
  <p>In <code>gradle-wrapper.properties</code> I already have the up to date version :</p>
  
  <pre><code>distributionUrl=http\://services.gradle.org/distributions/gradle-2.12-all.zip
  </code></pre>
  
  <p>As suggested in another post, I believe I have the latest version of gradle plugin. In File/Project Structure/Project I have :</p>
  
  <p><a href="https://i.stack.imgur.com/BwesU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BwesU.png" alt="enter image description here"></a></p>
  
  <p>Another post on SO said to right click on my Java directory and select from the menu, 'Mark Directory as Source'. But this option does not even appear in my menu. My version of Android Studio is AS 2.1 Preview 5. </p>
  
  <p>I can't select my java folder in blue, as it should be (marked as source) and my MainActivity java file has a funny red symbol. I seem unable to make it a java class file :</p>
  
  <p><a href="https://i.stack.imgur.com/wikgt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wikgt.png" alt="enter image description here"></a></p>
  
  <p>Any idea how to solve this problem on this buggy platform?</p>