主工程或者lib库用到FileProvide冲突问题
可以看到Bugly的SDK文档中
1 2 3 4 5 6 7 8 9 10 11 12
| 如果你使用的第三方库也配置了同样的FileProvider, 可以通过继承FileProvider类来解决合并冲突的问题,示例如下: <provider android:name=".utils.MyBuglyProvider" android:authorities="${applicationId}.fileProvider" android:exported="false" android:grantUriPermissions="true" tools:replace="name,authorities,exported,grantUriPermissions"> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/provider_paths" tools:replace="name,resource"/> </provider>
|
1 2 3 4 5 6 7 8 9 10
| import android.support.v4.content.FileProvider;
public class MyBuglyProvider extends FileProvider { }
|
https://blog.csdn.net/hmmhhmmhmhhm/article/details/72822838
https://bugly.qq.com/docs/user-guide/instruction-manual-android-upgrade/?v=20180815204532