Dagger Hilt Error Execution failed for task How can I solve this issue?

26 views Asked by At

the error I am getting is Execution failed for task ':app:kaptDebugKotlin'. A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptWithoutKotlincTask$KaptExecutionWorkAction java.lang.reflect.InvocationTargetException (no error message)

      @Module
      @InstallIn(SingletonComponent::class)
      object AppModule {

      @Provides
      @Singleton
      fun providesApiService() : ApiService =
         Retrofit.Builder()
        .baseUrl("https://jsonplaceholder.typicode.com")
        .addConverterFactory(GsonConverterFactory.create())
        .build()
        .create(ApiService::class.java)

      }
0

There are 0 answers