title: androidx FILE_PROVIDER_PATHS
body: <p>How to migrate FileProvider to androidx?</p>
  
  <p>In the manifest file, how to specify the FileProvider?</p>
  
  <pre><code>&lt;provider           android:authorities="${applicationId}.FileProvider"              android:name="which.package.to.put.here.FileProvider"
              android:enabled="true"
              android:exported="false"
              android:grantUriPermissions="true"&gt;
              &lt;meta-data android:name="which.package.to.put.here.FILE_PROVIDER_PATHS"
                  android:resource="@xml/file_path" /&gt;
  &lt;/provider&gt;
  </code></pre>
  
  <p>I tried to use androidx.core.content.FileProvider, but I got this error:</p>
  
  <pre><code>java.lang.RuntimeException: Unable to get provider androidx.core.content.FileProvider: java.lang.IllegalArgumentException: Missing android.support.FILE_PROVIDER_PATHS meta-data
  </code></pre>