title: cannot find symbol class DaggerAppComponent or cannot find symbol class DaggerActivityComponent
body: <p>I get this error after adding inject on my class then it gives me a compilation error.
  If I remove   </p>
  
  <pre><code>@Inject static ApiService mApiService;
  </code></pre>
  
  <p>it's working fine</p>
  
  <p>And I'm using 2 Application class those are extended MultidexApplication because I have merge 2 application first is using dagger2 and second application is butterknife and both directory structure are differnet and both application interdependently working fine but after merge the code application not compile and give DaggerAppComponent error!</p>
  
  <p>Please help us to resolve my query</p>
  
  <p>I'm follow the below structure</p>
  
  <hr>
  
  <pre><code>@ActivityScope
  @Component(dependencies = AppComponent.class)
  public interface ActivityComponent extends AppComponent {
      void inject(SignInActivity activity);
  }
  </code></pre>
  
  <hr>
  
  <pre><code>@Singleton
  @Component(modules = {ApplicationModule.class, ApiModule.class})
  public interface AppComponent {
      Context appContext();
      Config config();
      ApiService apiService();    
  }
  </code></pre>
  
  <hr>
  
  <pre><code>@Module
  public class ActivityModule {
      private final Activity mActivity;
  
      public ActivityModule(Activity activity){
          mActivity = activity;
      }
  
      @Provides
      public Context activityContext(){
          return mActivity;
      }
  }
  </code></pre>
  
  <hr>
  
  <pre><code>@Module
  public class ApiModule {
      @Provides
      @Singleton
      public ApiService apiService(){
          OkHttpClient client = new OkHttpClient().newBuilder()
                  .connectTimeout(10, TimeUnit.SECONDS)
                  .readTimeout(30, TimeUnit.SECONDS)
                  .writeTimeout(10, TimeUnit.SECONDS)
                  .build();
          ObjectMapper mapper = new ObjectMapper();
          mapper.configure(DeserializationFeature.FAIL_ON_IGNORED_PROPERTIES,false);
          mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES,false);
          return new Retrofit.Builder()
                  .baseUrl(Config.API_URL)
                  .addConverterFactory(JacksonConverterFactory.create(mapper))
                  .client(client)
                  .build()
                  .create(ApiService.class);
      }
  }
  </code></pre>
  
  <hr>
  
  <pre><code>@Module
  public class ApplicationModule {
      private final App mApp;
  
      public ApplicationModule(App app) {
          mApp = app;
      }
  
      @Provides
      @Singleton
      public Context appContext() {
          return mApp;
      }
  
      @Provides
      @Singleton
      public Config config() {
          return new Config(mApp);
      }    
  }
  </code></pre>
  
  <hr>
  
  <pre><code>@Scope
  @Retention(RetentionPolicy.RUNTIME)
  public @interface ActivityScope {
  }
  </code></pre>
  
  <hr>
  
  <pre><code>public class App extends BrowserApp {
      private AppComponent mAppComponent;
  
      @Override
      public void onCreate() {
          super.onCreate();
          mAppComponent = DaggerAppComponent.builder().applicationModule(new ApplicationModule(this)).build();
  
      }
  
      public AppComponent getAppAppComponent() {
          return mAppComponent;
      }
  
      @Override
      protected void attachBaseContext(Context base) {
          super.attachBaseContext(base);
          MultiDex.install(this);
      }
  }
  </code></pre>