Open sanyinchen opened 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?
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
As description:Can not find DaggerPluginComponent class in source code.