title: Kotlin error: Dagger does not support injection into static fields
body: <p>i tried to use Dagger for dependency injection in my Retrofit project, but when I build the code it throws this error : Dagger does not support injection into static fields. Does anyone have any idea why I get this error? i cant figure out what I did wrong.</p>
  <p>MianActivity.kt:</p>
  <pre><code>@Inject
  lateinit var  mApiService : ApiService
  
  class MainActivity : AppCompatActivity() {
  
  
  
      override fun onCreate(savedInstanceState: Bundle?) {
          super.onCreate(savedInstanceState)
          setContentView(R.layout.activity_main)
  
          var retroComponent = DaggerRetroComponent.create()
          retroComponent.inject(this)
  }
  </code></pre>
  <p>RetroComponet.kt</p>
  <pre><code>@Singleton
  @Component(modules = [ServiceBuilderModule::class])
  interface RetroComponent {
      //Field Injection
      fun inject(mainActivity: MainActivity)
  }
  </code></pre>
  <p>ServiceBuilder.kt</p>
  <pre><code>@Module
  object ServiceBuilderModule {
      val baseUrl = &quot;https://dog-facts-api.herokuapp.com&quot;
  
  
      @Singleton
      @Provides
      fun retrofitInstance(): Retrofit {
          return Retrofit.Builder().baseUrl(baseUrl)
              .addConverterFactory(GsonConverterFactory.create())
              .build()
      }
  
      @Singleton
      @Provides
      fun getRetroServiceInterface(retrofit: Retrofit): ApiService {
          return retrofit.create(ApiService::class.java)
      }
  </code></pre>
  <p>ApiService.kt</p>
  <pre><code>interface ApiService {
      @GET(&quot;/api/v1/resources/dogs&quot;)
      suspend fun getDogFact(@Query(&quot;index&quot;) index: String): Response&lt;List&lt;DogFactModel&gt;&gt;
  
  }
  </code></pre>