title: How to use DaggerAppCompatActivity in MainActivity
body: <p>I have tried to use dagger in my project, but the code can not be compiled if I replace AppCompatActivity with DaggerAppCompatActivity in my MainActivity.</p>
  
  <pre><code>class MainActivity : DaggerAppCompatActivity() {  // how to use dagger in MainActivity?
  
      override fun onCreate(savedInstanceState: Bundle?) {
          super.onCreate(savedInstanceState)
          setContentView(R.layout.activity_main)
      }
  }
  </code></pre>