ProcessReleaseResources

好久不见. 提交于 2019-12-10 03:50:25

问题


I am trying to build my react-native project and using react-native-fbsdk.

I am using react-native@0.38.0 and, react-native-fbsdk@0.5.0.

When I build my project I got this error on execution screen.

**Execution failed for task** ':react-native-fbsdk:processReleaseResources'.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/sathish/Android/Sdk/build-tools/23.0.1/aapt'' **finished with non-zero exit value 1**

回答1:


I found the solution for that.

react-native-fbsdk module was updated a few days ago, causing this error to occur.

if you want to resolve this error then do the following:

  1. Go to your node_modules/react-native-fbsdk/android/build.gradle. open build.gradle file.

  2. Change compile('com.facebook.android:facebook-android-sdk:4++') to compile('com.facebook.android:facebook-android-sdk:4.22.1')




回答2:


Was able to fix it by updating the react-native-fbsdk to 0.6.0.




回答3:


This works but even using it and RN 0.45 it was kind of temporary. If I upgraded a module I would have to reapply the fix. I found this and it seems like a better fix. Should be updated in the main RN repo though.



来源:https://stackoverflow.com/questions/44235408/processreleaseresources

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!