Unity打包报错more than one file was found with os independent path

打包时的弹窗
Unity打包报错more than one file was found with os independent path
项目使用了ShareSDK、百度ARSDK,buildSystem选的Gradle(关于Gradle打包和shareSDK接入的坑请参考我之前的文章:Unity集成ShareSDK遇到的问题),之前打包没问题,昨晚调整了一下文件夹今早打包就出问题了。
Unity打包报错more than one file was found with os independent path
Unity打包报错more than one file was found with os independent path
网上查了一下发现都是AndroidStudio出现这个问题,大致意思是项目引用的jar冲突了,有多个jar,然后我就删除了错误信息中的那个(别直接删啊,做个备份,我是剪切出去了。)。Unity打包报错more than one file was found with os independent path
删除之后打包时成功了,但是打包完会报个错误。
Unity打包报错more than one file was found with os independent path
不行,将文件复制回去。看报错是有什么冲突了,猜想是SDK和引入的库类的问题,将工程复制一份,把导入的SDK和库类挨个剔除,最后将ShareSDK剔除后就可以正常打包了,果然是它!!!
最后将ShareSDK相关文件删除,重新导入,重新配置文件,问题解决。