Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android打包失败 #11

Closed
cyjcxy opened this issue Dec 13, 2017 · 9 comments
Closed

android打包失败 #11

cyjcxy opened this issue Dec 13, 2017 · 9 comments

Comments

@cyjcxy
Copy link

cyjcxy commented Dec 13, 2017

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:processDebugManifest'.

Manifest merger failed : Attribute meta-data#android.support.FILE_PROVIDER_PATHS@resource value=(@xml/file_paths) from [YouthHealthWorkerApp:react-native-syan-image-picker:unspecified] AndroidManifest.xml:23:17-51
is also present at [YouthHealthWorkerApp:react-native-image-picker:unspecified] AndroidManifest.xml:19:17-55 value=(@xml/provider_paths).
Suggestion: add 'tools:replace="android:resource"' to element at AndroidManifest.xml to override.

@syanbo
Copy link
Owner

syanbo commented Dec 13, 2017

@cyjcxy 你可以把 react-native-syan-image-picker AndroidManifest.xml 文件 下的 application 注释掉,重新打包

@dioxide
Copy link

dioxide commented Jan 8, 2018

@syanbo 请问这个是 FILE_PROVIDER 与项目其他库冲突的问题么? 如果完全注释掉, 那它的用途是? 3q

@R10burning
Copy link

@syanbo 我也想问注释掉有什么影响吗

@syanbo
Copy link
Owner

syanbo commented Jan 12, 2018

@R10burning @dioxide 新版本已经修复了该bug 注释会影响安卓7.0拍照访问文件权限

@R10burning
Copy link

@syanbo 3q老铁

@jiushicheng
Copy link

问题解决了吗?我现在版本0.1.0 .还是会有这个错误。 我之前有用 react-native-image-picker 和 eact-native-image-crop-picker 这两个组件,冲突了?

@syanbo
Copy link
Owner

syanbo commented Jan 29, 2018

@jiushicheng 把 react-native-syan-image-picker AndroidManifest.xml 文件 下的 application 注释掉,重新打包。

@jiushicheng
Copy link

@syanbo 好。选中图片的返回得到的photos对象能不能加上图片size 属性 多谢

@syanbo syanbo closed this as completed Mar 30, 2018
@Ariel08081214
Copy link

去掉之后会报其他的错,你没有报吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants