title: Android gradle import lots of errors and trouble
body: <p>Im trying to get used to this new gradle system built into the new Android studio.</p>
  
  <p>I've tried a really basic task, to import the websockets library into my project. So I imported the module via the normal route (File->Project Structure), I imported the java-websockets module in and added it as a dependency too. Finally I import the org.java_websockets class into my project.</p>
  
  <p>My project ended up looking like this:</p>
  
  <p><img src="https://i.stack.imgur.com/ikYkJ.png" alt="enter image description here"></p>
  
  <p>So this is where my problem starts, I give it a shot and try to build it and run into the usual gradle errors. So I added an 'include' line to my settings.gradle</p>
  
  <pre><code>include ':java-ws-client'
  </code></pre>
  
  <p>and another one into my build.gradle</p>
  
  <pre><code>compile project(':java-ws-client')
  </code></pre>
  
  <p>So now I find myself stuck with two problems:</p>
  
  <p>One fairly undescriptive one:</p>
  
  <p><img src="https://i.stack.imgur.com/11PHf.png" alt="enter image description here"></p>
  
  <p>and another:</p>
  
  <p><img src="https://i.stack.imgur.com/dlf4t.png" alt="enter image description here"></p>
  
  <p>I've tried updating my android studio to the latest one, and the project above is a fresh one.</p>
  
  <p>How can I avoid pulling my hair out?</p>