IllegalArgumentException: Failed to find configuration root that contains xxx on FileProvider.getUriForFile
问题 I have been trying to follow the Android tutorial on sharing files. I set up the FileProvider like this: On the main manifest xml: <provider android:name="android.support.v4.content.FileProvider" android:authorities="com.example.mysecondapp.fileprovider" android:exported="false" android:grantUriPermissions="true" > <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/filepaths" /> </provider> the res/xml/filpaths.xml file: <paths xmlns:android="http://schemas