GithubHelp home page GithubHelp logo

Comments (9)

the-simian avatar the-simian commented on July 27, 2024 6

Hey, have you added bugsnag to your MainApplication.java? That could be it.

   import com.bugsnag.BugsnagReactNative;

    @Override
    protected List<ReactPackage> getPackages() {
      return Arrays.<ReactPackage>asList(
          new MainReactPackage(),
          //... other packages here.
          BugsnagReactNative.getPackage(),

      );
    }
  };

the fact you call getPackage() is unusual, most don't work or look like that.

from bugsnag-react-native.

kevinnguy avatar kevinnguy commented on July 27, 2024 2

Ahh that fixed it @the-simian. My project is using react-native-navigation so react-native link may have not worked properly. Thanks for pointing it out!

from bugsnag-react-native.

 avatar commented on July 27, 2024

Hey, I got same issue.

screenshot_1530760718

I'm using:

"bugsnag-react-native": "^2.10.0",
"react-native": "^0.48.4",

I already configured (link)

settings.gradle

include ':bugsnag-react-native'
project(':bugsnag-react-native').projectDir = new File(rootProject.projectDir, '../node_modules/bugsnag-react-native/android')

app/build.gradle

dependencies {
    compile project(':bugsnag-react-native')
    ...
}

MainApplication.java -> getPackages

...
new MainReactPackage(),
BugsnagReactNative.getPackage(),
...

MainApplication.java -> onCreate

super.onCreate();
BugsnagReactNative.start(this);
...

I have no idea how to fix the issue. I already followed the basic configuration step.

from bugsnag-react-native.

kinza88 avatar kinza88 commented on July 27, 2024

@PaijoRX
Hey! Did you find any solution?

from bugsnag-react-native.

beausmith avatar beausmith commented on July 27, 2024

I had the same issue and this is the solution that worked for me: #269

cc @kinza88 @PaijoRX @kevinnguy

from bugsnag-react-native.

xintong621 avatar xintong621 commented on July 27, 2024

Hi I had the same issue on Android and I did manually link. My problem was fixed.

from bugsnag-react-native.

maulikdhameliya avatar maulikdhameliya commented on July 27, 2024

Hi, I am using react-native-navigation and somehow react-native link didn't add the package in MainApplication.java file.

added and worked!

import com.bugsnag.BugsnagReactNative;

    @Override
    protected List<ReactPackage> getPackages() {
      return Arrays.<ReactPackage>asList(
          new MainReactPackage(),
          //... other packages here.
          BugsnagReactNative.getPackage(),

      );
    }
  };

from bugsnag-react-native.

xintong621 avatar xintong621 commented on July 27, 2024

Hi, I am using react-native-navigation and somehow react-native link didn't add the package in MainApplication.java file.

added and worked!

import com.bugsnag.BugsnagReactNative;

    @Override
    protected List<ReactPackage> getPackages() {
      return Arrays.<ReactPackage>asList(
          new MainReactPackage(),
          //... other packages here.
          BugsnagReactNative.getPackage(),

      );
    }
  };

Hi I think in your case you could try the manual link: https://docs.bugsnag.com/platforms/react-native/manual-linking-guide/

from bugsnag-react-native.

 avatar commented on July 27, 2024

apply plugin: "com.android.application" apply plugin: 'com.bugsnag.android.gradle'

for me i need to add the apply plugin line at the top of app/build.gradle file

from bugsnag-react-native.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.