title: package androidx.appcompat.widget does not exist Android Studio
body: <p>I have created a custom Class which extends ImageView. It was working perfectly fine until AndroidX shows up.</p>
  
  <p>Here, the java code</p>
  
  <pre class="lang-java prettyprint-override"><code>import android.content.Context;
  import android.graphics.BitmapFactory;
  import android.util.Base64;
  import android.widget.RelativeLayout;
  
  import androidx.appcompat.widget.AppCompatImageView;
  
  
  public class CloseView extends AppCompatImageView {
  
      public CloseView(Context context) {
          super(context);
          init();
      }
  ...
  
  </code></pre>
  
  <pre><code>dependencies {
      implementation fileTree(dir: 'libs', include: ['*.jar'])
  
      implementation 'com.android.support:appcompat-v7:28.0.0'
      implementation 'com.android.support:support-v4:28.0.0'
      testImplementation 'junit:junit:4.12'
      androidTestImplementation 'com.android.support.test:runner:1.0.2'
      androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  }
  </code></pre>
  
  <p>Android shows 2 errors for this file</p>
  
  <ol>
  <li>error: cannot find symbol class AppCompatImageView</li>
  <li>error: package androidx.appcompat.widget does not exist</li>
  </ol>
  
  <p>Has anyone able to fix this issue?</p>