Im using dagger 2 since a while, but today trying to compile got this error:
Error:(13, 31) error: cannot find symbol class Dagger_GlobalComponent
Error:(38, 21) error: cannot find symbol variable Dagger_GlobalComponent
So here is the code:
public class MyAppApplication extends Application {
private static GlobalComponent component;
@Override
public void onCreate() {
super.onCreate();
component = Dagger_GlobalComponent.builder()
.busModule(new BusModule())
.syncModule(new SyncModule())
.serviceModule(new ServiceModule())
.contextModule(new ContextModule(this))
.persistenceModule(new PersistenceModule(this))
.build();
}}
And gradle dependencies:
...
compile 'com.google.dagger:dagger:2.0-SNAPSHOT'
apt 'com.google.dagger:dagger-compiler:2.0-SNAPSHOT'
provided 'org.glassfish:javax.annotation:10.0-b28'
...
Any solutions? Already tried to: Clean, Rebuild, Change dependecy versions, also deleting the Gradle cache and reinstalling Android Studio.
If it helps also got the same error with this sample projects: