title: Android Compose: Type is defined multiple times
body: <p>and thanks in advance for any help.</p>
  <p>I'm new to Android development, so apologies if my question is stupid or duplicate.</p>
  <p>I'm using jetpack compose on Android Studio <code>4.2.0-alpha12</code> and Gradle version <code>6.6.1</code>. I'm getting the error when I build the app</p>
  <pre><code>Type com.example.athis.model.course.Coordinate-$$ExternalSynthetic1 is defined multiple times: /Users/noahtatko/AndroidStudioProjects/golf_score_android/app/build/intermediates/project_dex_archive/debug/out/com/example/athis/model/course/Coordinate.dex, /Users/noahtatko/AndroidStudioProjects/golf_score_android/app/build/intermediates/project_dex_archive/debug/out/com/example/athis/model/course/Hole.dex
  </code></pre>
  <p>The kotlin files (not the <code>.dex</code> files) are as follows:</p>
  <pre class="lang-kotlin prettyprint-override"><code>// Hole.kt
  package com.example.athis.model.course
  
  import androidx.compose.runtime.Immutable
  
  @Immutable
  data class Hole(
      val id: Long,
      val hole: Long,
      val yards: Long,
      val handicap: Int,
      val par: Int,
      val coordinates: Coordinate
  )
  </code></pre>
  <pre class="lang-kotlin prettyprint-override"><code>// Coordinate.kt
  package com.example.athis.model.course
  
  import androidx.compose.runtime.Immutable
  
  @Immutable
  data class Coordinate(
      val id: Long,
      val lat: Double,
      val long: Double
  )
  </code></pre>
  <p>I've tried switching my gradle version, since that seems to be the normal fix, but because I'm using compose, I'm limited to releases after 6.6.1, none of which have helped.</p>
  <p>One odd thing that may factor in: even though I'm on a Mac, I have a <code>gradlew.bat</code> file, and <code>./gradlew build</code> does not work. Is there a way to regenerate these? I've tried deleting them, but then the app fails to run at all, not just build failures.</p>