Can not build after install react-native-fbsdk
See original GitHub issueDescription
I’m trying to install react-native-fbsdk in my react-native project. I’m doing it with these commends:
react-native init myapp
cd myapp
npm i -S react-native-fbsdk // react-native install react-native-fbsdk is not a valid commend
react-native link react-native-fbsdk
Then I’m trying to build with this commend:
react-native run-android
Then I went through the whole installation process of “importing and overriding” which explained here: https://github.com/facebook/react-native-fbsdk
Then I got this error during the building process:
Loading dependency graph, done.
ERROR EPERM: operation not permitted, lstat 'C:\wamp\www\myapp\app\android\ap
p\build\intermediates\incremental\mergeDebugResources\merged.dir\values'
{"errno":-4048,"code":"EPERM","syscall":"lstat","path":"C:\\wamp\\www\\myapp\\a
pp\\android\\app\\build\\intermediates\\incremental\\mergeDebugResources\\merged
.dir\\values"}
Error: EPERM: operation not permitted, lstat 'C:\wamp\www\myapp\app\android\app
\build\intermediates\incremental\mergeDebugResources\merged.dir\values'
at Error (native)
See http://facebook.github.io/react-native/docs/troubleshooting.html
for common problems and solutions.
Press any key to continue . . .
I went through the steps few times with few new projects and it always happen. Moreover the doc looks a bit not updated.
- The “react-native install” is not valid - https://github.com/facebook/react-native/issues/13176
- The import “import com.facebook.reactnative.androidsdk.FBSDKPackage;” is already exist in MainActivity.java
Any help please in order to complete the build process without any errors? Thanks.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Build failed after installing and configuring react-native-fbsdk
BTW i am using "react-native-fbsdk": "^0.8.0" version. Hope it will help you. If it does not work, i think the problem is with...
Read more >iOS: Cannot build and run the app after installing RNFBSDK ...
Bug Report I tried following the guide and chose NOT to use cocoapods. I have downloaded the SDK files and copied them to...
Read more >react-native-fbsdk-next - npm package - Snyk
I get this build error: no type or protocol named UIApplicationOpenURLOptionsKey : Your Xcode version is too old. Upgrade to Xcode 10.0+. You...
Read more >How to add FB SDK in react-native project | by Aneeqa Khan
1) Open the build. · 2) Now open the /app/res/values/strings. · 3) After that open the /app/manifests/AndroidManifest. · 4) And don't forget to...
Read more >failed to build project, possibly related to react-native-fbsdk ...
Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'. > Could not resolve com.facebook.android:facebook-android-sdk:9.0.+.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Problem solved: http://stackoverflow.com/a/43217182/2862728
Getting this error after following the steps at : https://github.com/facebook/react-native-fbsdk