Skip to content

Commit 057176c

Browse files
authored
Update README.md
1 parent b63632c commit 057176c

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,32 @@ compileOptions {
5555
}
5656
```
5757

58+
>If you get **Manifest merger failed with multiple errors, see logs** error while running or syncing gradle then you just have to create a class which extends **android.support.v4.content.FileProvider**.
59+
60+
```java
61+
Example:
62+
63+
import android.support.v4.content.FileProvider;
64+
65+
public class MyFileProvider extends FileProvider
66+
{
67+
68+
}
69+
70+
// after you have created this file then you have to register this in your manifest file.
71+
Example:
72+
<provider
73+
android:name="android.support.v4.content.FileProvider" // replace this line with the line below
74+
android:name=".MyFileProvider"
75+
android:authorities="com.mindtech.seed_manager.file_provider"
76+
android:exported="false"
77+
android:grantUriPermissions="true">
78+
<meta-data
79+
android:name="android.support.FILE_PROVIDER_PATHS"
80+
android:resource="@xml/file_provider_path" />
81+
</provider>
82+
```
83+
5884
## Usage
5985

6086
### ProjectApplication Class

0 commit comments

Comments
 (0)