Android Question ClassNotFoundException android.support.v4.content.FileProvider error

techknight

Well-Known Member
Licensed User
Longtime User
I keep getting a crash on AppUpdating not being able to find FileProvider.

It is in my manifest as so:

B4X:
' Starting from Android 7 (API 24) we pass a file uri using a FileProvider
AddApplicationText(
  <provider
  android:name="android.support.v4.content.FileProvider"
  android:authorities="$PACKAGE$.provider"
  android:exported="false"
  android:grantUriPermissions="true">
  <meta-data
  android:name="android.support.FILE_PROVIDER_PATHS"
  android:resource="@xml/provider_paths"/>
  </provider>
)
CreateResource(xml, provider_paths,
   <files-path name="name" path="shared" />
)
[code[

Thoughts?
 

techknight

Well-Known Member
Licensed User
Longtime User
I cant post the full error message. it pops up on a screenshot on the tablet.

I ended up forgetting to tick RunTimePermissions though. I ticked that and recompiled. Somehow, the error went away. So I cant reproduce the problem now. I hate it when that happens.

Not sure if that was a fluke or what.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…