title: Getting "error: package androidx.core.content does not exist" when trying to build android project with FileProvider
body: <p>I am relatively new to Android development, and I'm using Android Studio for development. I am trying to work with the camera for my app, and I'm trying to follow the instructions here <a href="https://developer.android.com/training/camera/photobasics" rel="nofollow noreferrer">https://developer.android.com/training/camera/photobasics</a>. It says to use the FileProvider class, but when I try to import it, I get the error</p>
  <p>&quot;error: package androidx.core.content does not exist&quot;</p>
  <p>I've already set my compile, min, and target SDK versions to 28</p>
  <pre><code>compileSdkVersion 28
      defaultConfig {
          if (buildAsApplication) {
              applicationId &quot;org.libsdl.app&quot;
          }
          minSdkVersion 28
          targetSdkVersion 28
          versionCode 1
          versionName &quot;1.0&quot;
          externalNativeBuild {
              ndkBuild {
                  arguments &quot;APP_PLATFORM=android-28&quot;
                  abiFilters 'armeabi-v7a', 'arm64-v8a'
              }
          }
      }
  </code></pre>
  <p>I've also added the following to my gradle.properties based on <a href="https://developer.android.com/jetpack/androidx/migrate" rel="nofollow noreferrer">https://developer.android.com/jetpack/androidx/migrate</a></p>
  <pre><code>android.useAndroidX=true
  android.enableJetifier=true
  </code></pre>
  <p>I also added the following to my manifest</p>
  <pre><code>&lt;provider
          android:name=&quot;androidx.core.content.FileProvider&quot;
          android:authorities=&quot;com.example.android.fileprovider&quot;
          android:exported=&quot;false&quot;
          android:grantUriPermissions=&quot;true&quot;&gt;
          &lt;meta-data
              android:name=&quot;android.support.FILE_PROVIDER_PATHS&quot;
              android:resource=&quot;@xml/file_paths&quot;&gt;&lt;/meta-data&gt;
          &lt;/provider&gt;
  </code></pre>
  <p>And my import just looks like the following</p>
  <pre><code>import androidx.core.content.FileProvider;
  </code></pre>
  <p>I have already tried cleaning and building my project again, and I've tried invalidating the cache and restarting in Android Studio. This issue only happened once I added the FileProvider import.</p>