title: Android: FileProvider IllegalArgumentException Failed to find configured root that contains /data/data/**/files/Videos/final.mp4
body: <p>I am trying to use <code>FileProvider</code> to play a video from private path.Facing  </p>
  
  
  
  <pre><code>java.lang.IllegalArgumentException: Failed to find configured root that contains /data/data/XXXXX(Package)/files/Videos/final.mp4
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>&lt;paths&gt;
      &lt;files-path path="my_docs" name="Videos/" /&gt;
  &lt;/paths&gt;
  </code></pre>
  
  <p>Java code:</p>
  
  <pre><code>File imagePath = new File(getFilesDir(), "Videos");
  File newFile = new File(imagePath, "final.mp4");
  Log.d(TAG, "-------------newFile:"+newFile.exists());//True here
  //Exception in below line
  Uri contentUri = FileProvider.getUriForFile(this,"com.wow.fileprovider", newFile);
  </code></pre>
  
  <p>Manifest.xml</p>
  
  <pre><code>&lt;provider
      android:name="android.support.v4.content.FileProvider"
      android:authorities="com.wow.fileprovider"
      android:exported="false"
      android:grantUriPermissions="true"&gt;
  
  &lt;meta-data
      android:name="android.support.FILE_PROVIDER_PATHS"
      android:resource="@xml/file_paths" /&gt;
  </code></pre>
  
  <p>Any clues on this?</p>
  
  <p>Thanks
  Nitz</p>