Comments (9)
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.
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.
Hey, I got same issue.
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.
@PaijoRX
Hey! Did you find any solution?
from bugsnag-react-native.
I had the same issue and this is the solution that worked for me: #269
cc @kinza88 @PaijoRX @kevinnguy
from bugsnag-react-native.
Hi I had the same issue on Android and I did manually link. My problem was fixed.
from bugsnag-react-native.
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.
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.
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)
- Ask for user confirmation in registerBeforeSendCallback HOT 1
- Intermittent build failure on :bugsnag-react-native:verifyReleaseResources Gradle task HOT 2
- New version utilising new JS and Android versions? HOT 3
- the uploaded source map not getting applied HOT 1
- iOS: Definition of '' must be imported from module HOT 6
- Upload Hermes sourcemaps generated by CodePush HOT 1
- Unhandled crashes not sent. (iOS) HOT 2
- bugsnag-react-native does not support bugsnag-cocoa 6.0 HOT 6
- iOS Build Error: Include of a non-modular header inside framework module 'BugsnagReactNative.Bugsnag' HOT 6
- iOS Library misbehaves when dropping breadcrumbs HOT 4
- Cycle in dependencies between targets 'BugsnagReactNative' and 'FBSDKCoreKit'; HOT 2
- App crash during launch java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader HOT 4
- Files that shouldn't be in your npm package HOT 1
- Sourcemap path in case of android flavor builds HOT 3
- RN62.0: Multiple targets match implicit dependency for linker flag '-lBugsnagReactNative HOT 4
- Missing TS declarations '@bugsnag/react-native' ^7.3.1 HOT 4
- Missing TS definition for `codeBundleId` in Bugsnag.start() HOT 4
- Bugsnag Android Dependency Update HOT 1
- Please add back JS releaseStage and appVersion HOT 1
- Ability to set `errorClass` in new version? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bugsnag-react-native.