title: A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution with ROOM and @Database annotation
body: <p>I am using Room for offline storage. My model contain List which Room does not support and i write typeconverters but now i am getting this error. when i remove @Database annotation then error goes but with @Database annotation it is displaying the error. here is my all relevant classes.</p>
  <p>here is my Dao</p>
  <pre><code>package com.example.mvvm.room
  
  import androidx.lifecycle.MutableLiveData
  import androidx.room.Dao
  import androidx.room.Delete
  import androidx.room.Insert
  import androidx.room.Query
  import com.example.mvvm.models.Result
  
  @Dao
  interface MovieDao {
      @Query(&quot;Select * from Result&quot;)
      fun readMovieList():MutableLiveData&lt;ArrayList&lt;Result&gt;&gt;
  
      @Insert
      fun insertData(result: Result)
  
      @Delete
      fun deleteAll()
  }
  </code></pre>
  <p>here is my Database class</p>
  <pre><code>package com.example.mvvm.room
  import android.content.Context
  import androidx.room.*
  import com.example.mvvm.MyTypeConverter
  import com.example.mvvm.models.Result
  
  @Database(entities = arrayOf(Result::class),version = 1)
  @TypeConverters(MyTypeConverter::class)
  abstract class MovieDatabase:RoomDatabase(){
     companion object{
  
        private var INSTANCE:MovieDatabase?=null
        fun getInstance(context: Context):MovieDatabase? {
           if (INSTANCE == null) {
              synchronized(MovieDatabase::class) {
                 INSTANCE = Room.databaseBuilder(context, MovieDatabase::class.java, &quot;movie.db&quot;).
                 fallbackToDestructiveMigration()
                    .allowMainThreadQueries()
                    .build()
              }
           }
           return INSTANCE
        }
     }
     abstract fun movieDao():MovieDao
  }
  </code></pre>
  <p>here is my model</p>
  <pre><code>package com.example.mvvm.models
  
  import androidx.room.ColumnInfo
  import androidx.room.Entity
  import androidx.room.TypeConverters
  import com.example.mvvm.MyTypeConverter
  
  @Entity(tableName = &quot;result&quot;)
  data class Result(
      @ColumnInfo val adult: Boolean,
      @ColumnInfo val backdrop_path: String,
      @TypeConverters(MyTypeConverter::class)
      @ColumnInfo val genre_ids: List&lt;Int&gt;,
      @ColumnInfo val id: Int,
      @ColumnInfo val original_language: String,
      @ColumnInfo val original_title: String,
      @ColumnInfo val overview: String,
      @ColumnInfo val popularity: Double,
      @ColumnInfo val poster_path: String,
      @ColumnInfo val release_date: String,
      @ColumnInfo val title: String,
      @ColumnInfo val video: Boolean,
      @ColumnInfo val vote_average: Double,
      @ColumnInfo val vote_count: Int
  )
  </code></pre>
  <p>type converter class</p>
  <pre><code>package com.example.mvvm
  
  import androidx.room.TypeConverter
  import com.google.gson.Gson
  import com.google.gson.reflect.TypeToken
  
  class MyTypeConverter {
  
      companion object{
          private val gson = Gson()
          @JvmStatic
          @TypeConverter
          fun toJson(mInt : List&lt;Int&gt;):String{
              return gson.toJson(mInt)
          }
  
          @JvmStatic
          @TypeConverter
          fun fromJson(string : String):String{
              val type = object : TypeToken&lt;List&lt;Int&gt;&gt;(){}.type
              return gson.fromJson(string, type)
          }
      }
  }
  </code></pre>
  <p>here is the error</p>
  <pre><code>A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution
  </code></pre>