title: Check your module classpath for missing or conflicting dependencies
body: <p>I have a project with Java and Kotlin, which I am able to successfully run and build. However, when I open the project in IntelliJ, I see the same error in many of the project files.</p>
  <p>The error is &quot;Cannot access class 'java.lang.String'. Check your module classpath for missing or conflicting dependencies&quot;</p>
  <p>See the error in the image attached:
  <a href="https://i.stack.imgur.com/yGLDL.png" rel="noreferrer"><img src="https://i.stack.imgur.com/yGLDL.png" alt="enter image description here" /></a></p>
  <hr />
  <p>Another example of an error occurs when initializing a <a href="https://kotlinlang.org/docs/mobile/getting-started.html" rel="noreferrer">Kotlin MultiPlatform Mobile</a> project:</p>
  <pre><code>cannot access 'java.lang.Object' which is a supertype of 'org.gradle.api.artifacts.dsl.RepositoryHandler'. Check your module classpath for missing or conflicting dependencies
  </code></pre>
  <hr />
  <p>What is the source of this error? How can I fix it?</p>