title: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
body: <p>I cleaned the whole project by deleting local directories like <code>~/.gradle</code>, <code>~/.m2</code> <code>~./android</code> and <code>~/workspace/project/.gradle</code> and chosing <code>File -&gt; Invalidate Caches / Restart...</code> in Android Studio.
  Now execution of the command <code>./gradlew</code> leads to the following output:</p>
  
  <pre><code>usr$ ./gradlew tasks
  Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
  </code></pre>
  
  <p>Needless to say, I deleted too much, the question is how can it be repaired again? Do you have any ideas how to fix this? </p>