https://kotlinlang.org logo
Title
s

Santiago Oroz17

04/21/2020, 7:16 PM
Hi everyone I have a problem whit DaggerAppCompatActivity and Binding, They are not compatible? I have this error :
Caused by: java.lang.IllegalArgumentException: View is not a binding layout. Tag: layout/activity_movie_0
but only with DaggerAppCompatActivity
d

David Eriksson

04/21/2020, 8:31 PM
In my Android codebase (a bit dated now) I just do:
override fun onCreate(savedInstanceState: Bundle?) {
    AndroidInjection.inject(this)
:thumbsup_all: 1
And inherit from:
abstract class ScopedAppActivity : AppCompatActivity(), CoroutineScope {
...
Looks like I need to update my coroutines... ah well I hope you get a better answer 🙂
s

Santiago Oroz17

04/21/2020, 9:34 PM
Thank you.