Closed nowfalsalahudeen closed 6 years ago
Did you add the Provider in the res => xml folder with the specific name ?
i already put this.. found on your code
external-path name="external_files" path="."
yep i already did that..but didnt worked..file downloaded successfully.after that this error occurs
Sory bro ..it was my mistake.i just forgot to update manifest file
Add below code in your manifest.xml file .
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.dcastalia.localapkupdatelibrary">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application
..........................................................
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="${applicationId}.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths"/>
</provider>
</application>
</manifest>```
Thanks @nowfalsalahudeen , I am closing the issue as it's fixed . Happy Coding.
Hi @Piashsarker , I have used the code to update the app but i could only download the app in server but when i tried to install the same i am getting the error App not install. Could you please help to solve the issue.
Thanks and Regards, Neethu
@neethuantony42
Can you please share the logcat or Screenshot.
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