https://kotlinlang.org logo
#dagger
Title
# dagger
m

Marcin Środa

08/20/2020, 4:48 PM
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

fatih

08/20/2020, 7:27 PM
AndroidEntryPoint
is in
dagger.hilt.android
package.
m

Marcin Środa

08/21/2020, 5:14 AM
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

gildor

08/24/2020, 5:09 PM
Yep, makes sense, case is reserved word in java
4 Views