Hi guys, Looks I found some weird issue in Hilt. ...
# dagger
m
Hi guys, Looks I found some weird issue in Hilt. Try to create a sample activity with
@AndroidEntryPoint
in
case
package (
com.android.ui.case
or something). Result:
Failed Caused by: javassist.NotFoundException:
Are there any forbidden package names? (code without hilt annotation is working fine)
f
AndroidEntryPoint
is in
dagger.hilt.android
package.
m
I’m talking about creating new activity like:
Copy code
package com.android.example.ui.case

@AndroidEntryPoint
class SampleActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
    }
}
This one will fail (not generated by Hilt) because I’ve used
case
word in package.
g
Yep, makes sense, case is reserved word in java