title: Could not Resolve Symbol R After Migrating to Androidx
body: <p>After migrating to Androidx,my project start displaying a red underline error which says could not resolve R.</p>
  
  <ol>
  <li>i have Tried googling for some similar issue but yet the error
  remain,</li>
  <li>i have checked my manifest, my Res folder for error</li>
  <li>i have novalidate/restart project</li>
  <li>i have clean and rebuild project</li>
  <li>i have sync gradle with android project</li>
  </ol>
  
  <p>yet after i have done these, the error still remains</p>
  
  <pre><code>dependencies {
      implementation 'androidx.appcompat:appcompat:1.0.2'
      implementation 'androidx.recyclerview:recyclerview:1.0.0'
  //    implementation 'com.google.android.material:material:1.0.0-rc01'
      implementation 'com.google.android.material:material:1.1.0-alpha05'
      implementation 'androidx.multidex:multidex:2.0.1'
      implementation 'androidx.appcompat:appcompat:1.0.2'
  
      testImplementation 'junit:junit:4.12'
      androidTestImplementation 'androidx.test:runner:1.1.1'
      androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
  
  
      implementation 'com.github.maxyou:CalendarPicker:v1.1.2'
  
  //    Ramotion
      implementation 'com.ramotion.paperonboarding:paper-onboarding:1.1.3'
      implementation 'com.ramotion.foldingcell:folding-cell:1.2.3'
      implementation 'com.ramotion.garlandview:garland-view:0.3.3'
  }
  </code></pre>
  
  <p>MyApplication.java</p>
  
  <pre><code>package xyz.esusku.nearbyworker;
  
  import android.support.v7.app.AppCompatActivity;
  import android.os.Bundle;
  import androidx.appcompat.app.AppCompatActivity;
  
  public class MainActivity extends AppCompatActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
      }
  }```
  </code></pre>