Skip to content

Linking package broke project #11

@sixmoraltales

Description

@sixmoraltales

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions