codepath / codepath/android_guides
automatic class is not generated
- Dominant language
- No language data
- Stars
- 28.3k
- Forks
- 6.2k
- PR merge metrics
- No merged PRs in 30d
Description
i just followed the tutorials here and trying to make an android app I made a module class and a component interface and also wrote all the annotations related too classes and objects for them but still the class Daggercomponent is not generated for me
also added all 4 lines of code to dependencies in app gradle
whats the problem ?(i tried to find annotation processor option in android studio 3.1.2 but its no where to be found)
component
`@Singleton
@Component (modules = [globals::class])
interface component {
fun inject (activity:Activity)
}`
module
`@Module
class globals {
lateinit var volleyinstance:VolleyController
fun golobals(volley:VolleyController){
volleyinstance=volley
}
@Provides
@Singleton
fun provideVolley():VolleyController{
return volleyinstance
}
}`
Main class
`class MainActivity : AppCompatActivity() {
@Inject lateinit var volleyController:VolleyController
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
}`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.