When i am using XAM.Plugin.Media For Use camarea in my App, i m faciing this issue. RRS feed

  • Question

  • User394040 posted

    System.ArgumentException: 'Unable to get file location. This most likely means that the file provider information is not set in your Android Manifest file. Please check documentation on how to set this up in your project.'

    MainFest File <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.companyname.app3" android:installLocation="auto"> <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="29" /> <application android:label="App3.Android"></application> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.CAMERA" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.READ_INPUT_STATE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <application> <provider android:name="android.support.v4.content.FileProvider" android:authorities="${applicationId}.fileprovider" android:exported="false" android:grantUriPermissions="true"> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths"></meta-data> </provider> </application> </manifest> XML/file_paths <?xml version="1.0" encoding="utf-8"?> <paths xmlns:android="http://schemas.android.com/apk/res/android"> <external-files-path name="my_images" path="Pictures" /> <!--<external-files-path name="my_movies" path="Movies" />--> </paths> plz suggest any solution....thanks in advance

    Sunday, May 17, 2020 10:25 AM

All replies

  • User379860 posted

    First of all, please change the xml folder's name to the lowercase form like following screenshot. Please do not use XML, use xml to replace it.

    I write a demo about using this plugin. Here is running GIF.

    Here is my demo's link. You can download it and refer to it.


    Monday, May 18, 2020 2:26 AM