react-native-root-view-background icon indicating copy to clipboard operation
react-native-root-view-background copied to clipboard

Linking package broke project

Open sixmoraltales opened this issue 6 years ago • 1 comments

Performed: npm install react-native-root-view-background --save react-native link react-native-root-view-background

And now I have this:

> Task :app:compileDebugJavaWithJavac FAILED
/Users/me/arbtrRNTest1/android/app/src/main/java/com/arbtrrntest1/MainApplication.java:6: error: cannot find symbol
import org.advsoft.rnrootviewbackground.RNRootViewBackgroundPackage;
                                       ^
  symbol:   class RNRootViewBackgroundPackage
  location: package org.advsoft.rnrootviewbackground
/Users/me/arbtrRNTest1/android/app/src/main/java/com/arbtrrntest1/MainApplication.java:29: error: cannot find symbol
            new RNRootViewBackgroundPackage(),
                ^
  symbol: class RNRootViewBackgroundPackage
2 errors

It seems everything is installed as you describe in the manual installation instructions. However, not in MainActivity but MainApplication.

sixmoraltales avatar May 21 '19 22:05 sixmoraltales

@sixmoraltales did you find a solution to the problem?

taschik avatar Feb 24 '22 03:02 taschik