title: Import Kotlin class in Java Code - Android studio
body: <p>I am working with an Android App written on Java and I need an external java file that imports some Kotlin Classes:</p>
  <pre><code>import kotlin.Pair;
  import kotlin.Unit;
  import kotlin.collections.CollectionsKt;
  import kotlin.jvm.functions.Function1;
  import kotlin.jvm.functions.Function2;
  </code></pre>
  <p>I just cannot find any information on how to edit my Gradle scripts that the compiler is able to resolve those classes. When trying to run I only get the error
  <code>org.gradle.api.GradleException: Please initialize at least one Kotlin target in 'app (:app)'</code></p>
  <p>An instance of this class is created in my MainActivity.</p>
  <p>My <code>build.gradle</code> for the Module contains the plugin <code>id 'org.jetbrains.kotlin.multiplatform' version '1.5.10'</code> and the dependencies</p>
  <pre><code>implementation 'androidx.core:core-ktx:1.5.0'
  implementation &quot;org.jetbrains.kotlin:kotlin-stdlib:1.5.10&quot;
  </code></pre>
  <p>I am quite new to Gradle build scripts and I have no idea what I am doing wrong.</p>
  <p>EDIT: I am using Gradle 7.0.1</p>