Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find Symbol new RNNewRelicPackage #22

Open
ghost opened this issue Feb 1, 2018 · 2 comments
Open

Cannot find Symbol new RNNewRelicPackage #22

ghost opened this issue Feb 1, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Feb 1, 2018

After following your guidance i got this error when try to build my RN project:

s_rn/MainApplication.java:74: error: cannot find symbol
        new RNNewRelicPackage()

Please need your advice. Thanks

@codypearce
Copy link

codypearce commented Feb 19, 2018

I was able to get it working by adding both

import com.wix.rnnewrelic.RNNewRelicPackage;
import com.newrelic.agent.android.NewRelic;

To the MainApplication.java file

It seems this line new RNNewRelicPackage(), requires the first import and this one NewRelic.withApplicationToken("yourApplicationToken").start(this); requires the second

#21 Seems to address this issue

@nisargdesai15
Copy link

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

No branches or pull requests

2 participants