TakePhoto icon indicating copy to clipboard operation
TakePhoto copied to clipboard

提个醒,关于项目中已存在FileProvider的

Open mqsnq opened this issue 5 years ago • 6 comments

若项目中已存在FileProvider,可依照目前pull request大神的做法调整该工具类,切记自身项目FileProvider的文件名不要为 file_paths.xml ,切记!!!

mqsnq avatar Dec 13 '18 03:12 mqsnq

吼吼,刚刚跳坑了

adoop avatar Jan 10 '19 03:01 adoop

自己重写FileProvider 继承系统的FileProvider 就可以,用自己定义的放到manifest.xml中就没事了

zzp880303 avatar Jan 10 '19 23:01 zzp880303

@mqsnq 如果用了同样的文件名会怎样?我项目现在死活编译不过,改了不一样的名字也是编译不了

gzpaiwxc avatar Feb 28 '19 09:02 gzpaiwxc

@mqsnq 如果用了同样的文件名会怎样?我项目现在死活编译不过,改了不一样的名字也是编译不了

两种做法: 1.像上面那个老哥说的,自己重写FileProvider 继承系统的FileProvider 2.目前pull request有一条没通过的就是改作者项目的FileProvider

mqsnq avatar Mar 01 '19 03:03 mqsnq

@mqsnq 多谢大佬,救我一命

gzpaiwxc avatar Mar 01 '19 06:03 gzpaiwxc

冲突处理,这个方案对于两个FileProvider冲突,解决比较方便

https://blog.csdn.net/R3lish/article/details/58147225

ymqq avatar Mar 13 '19 02:03 ymqq