79147289

Date: 2024-11-01 08:02:38
Score: 0.5
Natty:
Report link

You can solve this error this way

  1. Create a folder under

android > app > src > main >xml

2.Create a files named-

filepaths.xml

3.Paste this code into filepaths.xml

<?xml version="1.0" encoding="utf-8"?>
<paths xmlns:android="http://schemas.android.com/apk/res/android">
    <external-path name="external_files" path="." />
</paths>
  1. In manifest just use this code

     <application
             android:label="iCare"
             android:name="${applicationName}"
             android:requestLegacyExternalStorage="true"
             android:icon="@mipmap/ic_launcher">
             <provider
             android:name="androidx.core.content.FileProvider"
             android:authorities="${applicationId}.provider"
             android:exported="false"
             android:grantUriPermissions="true">
             <meta-data
                 android:name="android.support.FILE_PROVIDER_PATHS"
                 android:resource="@xml/filepaths" />
         </provider>
    

Boom it will work again.

enter image description here

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Tanvir Ahmed