pbreault / adb-idea

A plugin for Android Studio and Intellij IDEA that speeds up your day to day android development.
Apache License 2.0
2.12k stars 257 forks source link

Can not find DaggerPluginComponent class in source code #58

Open sanyinchen opened 7 years ago

sanyinchen commented 7 years ago

As description:Can not find DaggerPluginComponent class in source code.

pbreault commented 7 years ago

Just to be clear, are you having this error when importing opening the project in Intellij 2016/2017 to build the plugin itself? Or are you having an error at runtime in Android Studio when you try to use the plugin?

In case you are trying to open the project in intellij:

This class is generated at compilation by Dagger 2.

Did you import the project as a gradle project in intelli 2016.3?

If so, try running the runIdea or the buildPlugin gradle task. That way the annotation processors will be registered properly and the app should be built correctly.

And make sure to copy and edit the variables in gradle.properties.change_me to your own gradle.properties file.

In case it's a runtime error in Studio:

What version of android studio are you using?

guhan121 commented 6 years ago

use Intellij

IntelliJ IDEA 2017.3 (Ultimate Edition)
Build #IU-173.3727.127, built on November 27, 2017
Licensed to lan yu
Subscription is active until October 14, 2018
JRE: 1.8.0_152-release-1024-b6 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 7 6.1

and StudioCompilePath=C:\\Program Files\\Android\\Android Studio in gradle.properties when run buildPlugin also got errorUnresolved reference: DaggerPluginComponent