Runtime error: Attempt to invoke virtual method 'android.content.res.XmlResourceParser
See original GitHub issueI’m getting the following error when using version 1.0.24 (after adding the provider). Did anyone face this? (it was working with the previous version…)
10x!!!
Attempt to invoke virtual method 'android.content.res.XmlResourceParser android.content.pm.PackageItemInfo.loadXmlMetaData(android.content.pm.PackageManager, java.lang.String)' on a null object reference parsePathStrategy FileProvider.java:583 getPathStrategy FileProvider.java:557 getUriForFile FileProvider.java:399 getURI ShareFile.java:135 open ShareIntent.java:49 open GenericShare.java:18 open RNShareModule.java:50 invoke Method.java invoke JavaMethodWrapper.java:374 invoke JavaModuleWrapper.java:162 run NativeRunnable.java handleCallback Handler.java:751 dispatchMessage Handler.java:95 dispatchMessage MessageQueueThreadHandler.java:31 loop Looper.java:154 run MessageQueueThreadImpl.java:194 run Thread.java:761
Issue Analytics
- State:
- Created 6 years ago
- Comments:14 (5 by maintainers)
Top GitHub Comments
Rebuild solved this one. For those coming from version 1.0.23 to 1.0.24, you need to:
I had to put on main application part the package name hardcode and with an if debug since my debug package name ends in .debug and in manifest left it fetching from graddle and no issue, after all I wasn’t sharing a base64, and 1.0.23 doesn’t work on andoird Oreo