title: virtual method 'android.content.res.XmlResourceParser android.content.pm.ProviderInfo.loadXmlMetaData
body: <p><strong>Please don't mark it duplicate before reading it</strong></p>
  
  <p>I have searched through all the links on stackoverflow and Github for a possible answer but still am getting the same error.</p>
  
  <p>Here is the Manifest file:</p>
  
  <pre><code>&lt;application
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:roundIcon="@mipmap/ic_launcher_round"
      android:supportsRtl="true"
      android:theme="@style/AppTheme"&gt;
      &lt;activity android:name=".MainActivity"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  
      &lt;provider android:authorities="com.example.aditya.pdf_report"
          android:exported="false" android:grantUriPermissions="true"
          android:name="android.support.v4.content.FileProvider"
          android:readPermission="com.company.aditya.pdf_report.READ"&gt;
          &lt;meta-data android:name="android.support.FILE_PROVIDER_PATHS"
              android:resource="@xml/file_paths"/&gt;
      &lt;/provider&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p>Here is Java file:</p>
  
  <pre><code>    File filelocation = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + "/pdf_report/" + reportname.getText().toString().trim() + ".pdf" );
          Uri path;
          path = FileProvider.getUriForFile(MainActivity.this, getPackageName(),filelocation);
          Intent emailIntent = new Intent(Intent.ACTION_SEND);
  // set the type to 'email'
          emailIntent .setType("vnd.android.cursor.dir/email");
  
          emailIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
          emailIntent .putExtra(Intent.EXTRA_STREAM, path);
  // the mail subject
          emailIntent .putExtra(Intent.EXTRA_SUBJECT, "Here is the Branch Visit Report - Human Resources");
          startActivity(Intent.createChooser(emailIntent , "Send email..."));
  </code></pre>
  
  <p>here is file-paths.xml:</p>
  
  <pre><code>&lt;paths xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;files-path name="pdf_report" path="pdf_report/"/&gt;
  &lt;/paths&gt;
  </code></pre>
  
  <p>here is my package name:</p>
  
  <pre><code>com.example.aditya.pdf_report
  </code></pre>
  
  <p>Here is where the Pdf is saved on my phone:</p>
  
  <pre><code>Environment.getExternalStorageDirectory().getAbsolutePath() + "/pdf_report"
  </code></pre>
  
  <p><strong>I have followed all the links but I think its the file-paths.xml where I am writing wrong stuff</strong></p>