I am using buildozer to compile a kivy script for android. The script requires access to external folders and so I need to use the fileprovider. I have added the appropriate information to a manifest file to be included in the buildozer created manifest. Also needed is a resource file specifying the filepaths to be handled. The extra manifest file content is:
<application>
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities=".levy.srt2j.fileprovider"
android:grantUriPermissions="true"
android:exported="false">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/filepaths" />
</provider>
</application>
And is located at src/android. Noting the resource line @xml/filepaths , I have created a file and placed it in several locations, but buildozer does not find it. The leaf of the path to the file is res/xml/filepaths.xml
I have placed it at src/android, src/main, src/debug but get the following error from buildozer:
[DEBUG]: > Task :processDebugResources FAILED
[DEBUG]:
[DEBUG]: FAILURE: Build failed with an exception.
[DEBUG]:
[DEBUG]: * What went wrong:
[DEBUG]: Execution failed for task ':processDebugResources'.
[DEBUG]: > A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
[DEBUG]: > Android resource linking failed
[DEBUG]: /home/levy/kivy_srt2json/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/srt2j/build/intermediates/packaged_manifests/debug/AndroidManifest.xml:76: error: resource xml/filepaths (aka .levy.srt2j:xml/filepaths) not found.
[DEBUG]: error: failed processing manifest.
Where is buildozer looking for the file?