Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Created attachment 25937 [details]
A sample project that show the build error message
obj/Debug/android/manifest/AndroidManifest.xml: Error APT0000: 11: error: Error: No resource found that matches the given name (at 'resource' with value '@xml/file_paths'). (APT0000) (TestFileProvider.Droid)
I tried to implement a FileProvider as in https://developer.android.com/reference/android/support/v4/content/FileProvider.html#ProviderDefinition where you define a Provider on AndroidManifest that specifies paths for file sharing. This paths are defined as a xml resource in a xml resource folder and pointed as '@xml/file_paths.xml'.
Xamarin build generates a Resource.Xml.file_paths but it cannot be called on AndroidManifest.
I created a empty project in Visual Studio for Mac that defines only a FileProvider and this error still persists. Project attached.
You have a typo.
It should be "@xml/files_path" and not "@xml/file_paths".