Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

automatic class is not generated #331

Open
Moeinh77 opened this issue Jun 4, 2018 · 0 comments
Open

automatic class is not generated #331

Moeinh77 opened this issue Jun 4, 2018 · 0 comments

Comments

@Moeinh77
Copy link

Moeinh77 commented Jun 4, 2018

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)
    }`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant