Xamarin Forms File Provider not set

后端 未结 6 1555
天命终不由人
天命终不由人 2021-01-04 03:22

I am currently going through the process of Learning Xamarin.Forms. I am currently attempting to implement Camera functions using the Plugin.Media.CrossMedia library.

<
6条回答
  •  星月不相逢
    2021-01-04 04:07

    The readme says:

    If your application targets Android N (API 24) or newer, you must use version 2.6.0+.

    You must also add a few additional configuration files to adhere to the new strict mode:

    1.) Add the following to your AndroidManifest.xml inside the tags:

    
                    
    
    

    YOUR_APP_PACKAGE_NAME must be set to your app package name!

    2.) Add a new folder called xml into your Resources folder and add a new XML file called file_paths.xml

    Add the following code:

    
    
        
        
    
    

    YOUR_APP_PACKAGE_NAME must be set to your app package name!

    You can read more at: https://developer.android.com/training/camera/photobasics.html

提交回复
热议问题