title: I am facing this error A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution
body: <p>In my app I have a model class, it has some variables, I can call and show this data in this app using retrofit and room DB. which means this app first collects data from the server then it shows in room DB. But when I am using the list in this model class it shows this error. Here is my code</p>
  <p>Movie.kt</p>
  <pre><code>@Entity(tableName = &quot;movie_table&quot;)
  data class Movie(
  @SerializedName(&quot;Id&quot;)
  @PrimaryKey(autoGenerate = true)
  val id: Int,
  @SerializedName(&quot;Title&quot;)
  @Expose
  val title: String,
  @SerializedName(&quot;Year&quot;)
  @Expose
  val Year: Int,
  @SerializedName(&quot;Actors&quot;)
  @Expose
  val actorDetails: List&lt;Actor&gt;
  )
  </code></pre>
  <p>Actor.kt</p>
  <pre><code>data class Actor(
  @SerializedName(&quot;ActorName&quot;)
  @Expose
  val actorName: String,
  @SerializedName(&quot;ActorPoster&quot;)
  @Expose
  val actorImage: String
  )
  </code></pre>
  <p>MovieDao.kt</p>
  <pre><code>@Dao
  interface MovieDao {
  @Insert(onConflict = OnConflictStrategy.REPLACE)
  suspend fun insertMovie(movie: Movie)
  
  @Query(&quot;SELECT * FROM movie_table&quot;)
  suspend fun getAllMovieDB(): List&lt;Movie&gt;
  }
  </code></pre>
  <p>MovieDatabase.kt</p>
  <pre><code>@Database(
  entities = [Movie::class],
  version = 1
  )
  abstract class MovieDatabase : RoomDatabase() {
  abstract fun getMovieDao(): MovieDao
  
  companion object {
      @Volatile
      private var instance: MovieDatabase? = null
      private val LOCK = Any()
  
      operator fun invoke(context: Context) = instance
          ?: synchronized(LOCK) {
              instance
                  ?: buildDatabase(context).also {
                      instance = it
                  }
          }
  
      private fun buildDatabase(context: Context) = Room.databaseBuilder(
          context.applicationContext,
          MovieDatabase::class.java,
          &quot;movieDatabase&quot;
      ).build()
  
  }
  }
  </code></pre>
  <p>here is my fake JSON API
  <a href="https://gist.githubusercontent.com/diptoroy/1ea1263971042e410af6c2cf220e4691/raw/5ae2248740ca87f02c6ec3e532d490782cdeaea8/movie%2520db%2520demo" rel="nofollow noreferrer">enter link description here</a></p>
  <p>here is the error
  <a href="https://i.stack.imgur.com/lzUMU.png" rel="nofollow noreferrer">enter image description here</a>
  I can't find any error, I am also using analyze for get the error but it's show nothing.
  How can I solve this? Thank you.</p>