Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

Android Build Issue "error: package com.facebook.react.uimanager.util does not exist" #117

Open
Shashank2406 opened this issue May 24, 2018 · 2 comments

Comments

@Shashank2406
Copy link

Followed the steps, now cannot proceed with build getting the following error.

error: package com.facebook.react.uimanager.util does not exist
import com.facebook.react.uimanager.util.ReactFindViewUtil;
^
/Users/shashanksrivastava/Desktop/poc/node_modules/react-native-opentok/android/src/main/java/com/rnopentok/RNOpenTokPublisherView.java:81: error: cannot find symbol
View captureView = ReactFindViewUtil.findView(this.getRootView(), "RN_OPENTOK_SCREEN_CAPTURE_VIEW");
^
symbol: variable ReactFindViewUtil
location: class RNOpenTokPublisherView
/Users/shashanksrivastava/Desktop/poc/node_modules/react-native-opentok/android/src/main/java/com/rnopentok/RNOpenTokPackage.java:13: error: RNOpenTokPackage is not abstract and does not override abstract method createJSModules() in ReactPackage
public class RNOpenTokPackage implements ReactPackage {
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
3 errors
:react-native-opentok:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':react-native-opentok:compileReleaseJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 9.86 secs

@msnajib
Copy link

msnajib commented Aug 6, 2018

+1

@dashu3f
Copy link

dashu3f commented Nov 2, 2018

Add this lines into your gradle.build :

compile(project(':react-native-fbsdk')) {
exclude(group: 'com.facebook.android', module: 'facebook-android-sdk')
}
compile('com.facebook.android:facebook-android-sdk:4.22.1')

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

No branches or pull requests

3 participants