social_share_plugin icon indicating copy to clipboard operation
social_share_plugin copied to clipboard

Attempt to invoke virtual method 'android.content.res.XmlResourceParser android.content.pm.ProviderInfo.loadXmlMetaData(android.content.pm.PackageManager, java.lang.String)' on a null object reference

Open AdamBCo opened this issue 4 years ago • 0 comments

I keep getting the following error after selecting an image from the gallery to shareToFeedInstagram.

Attempt to invoke virtual method 'android.content.res.XmlResourceParser android.content.pm.ProviderInfo.loadXmlMetaData(android.content.pm.PackageManager, java.lang.String)' on a null object reference

In my AndroidManifest.xml I have the following:

<provider android:name="androidx.core.content.FileProvider" android:authorities="{APP_PACKAGE}.social.share.fileprovider" android:exported="false" android:grantUriPermissions="true"> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/provider_paths" /> </provider>

In my ./main/res/xml/provider_paths.xml I have the following: <paths xmlns:android="http://schemas.android.com/apk/res/android"> <external-path name="external_files" path="."/> <files-path name="files" path="."/> </paths>

How can I address this issue?

AdamBCo avatar Apr 08 '20 20:04 AdamBCo