Comments (7)
In your app level's build.gradle there should be this line:
compile project(':react-native-firebase-crash-report')
Normally it's added automatically via rnpm link, did you successfully run rnpm link
?
from react-native-firebase-crash-report.
UPDATE: swithced to rn: 0.41.0, but I am still getting the same error, just as above.
from react-native-firebase-crash-report.
Hey @ddobby94, can you show your settings.gradle
? There should be these two lines:
include ':react-native-firebase-crash-report'
project(':react-native-firebase-crash-report').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-firebase-crash-report/android')
from react-native-firebase-crash-report.
thanks for the quick reply, @ianlin
Here is my settings.gradle:
...
include ':react-native-firebase-crash-report'
project(':react-native-firebase-crash-report').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-firebase-crash-report/android')
...
from react-native-firebase-crash-report.
It looks right. Also can you please show your android/build.gradle
and android/app/build.gradle
? Cheers.
from react-native-firebase-crash-report.
app lvl:
dependencies {
...
compile "com.google.firebase:firebase-messaging:10.0.0"
compile "com.google.android.gms:play-services-location:10.0.0"
compile "com.facebook.react:react-native:+" // From node_modules
}
apply plugin: 'com.google.gms.google-services'
root lvl:
dependencies {
classpath 'com.android.tools.build:gradle:2.0.0'
classpath 'com.google.gms:google-services:3.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
from react-native-firebase-crash-report.
@ianlin Yes! That's it! The build is now good!
And answering your question: I have runned the rnpm link, but it only put
import com.ianlin.RNFirebaseCrashReport.RNFirebaseCrashReportPackage;
inside MainActivity.java,
but the compile project(':react-native-firebase-crash-report')
was missing from app/build.gradle.
I think you could add this line to the android installation too:
- In
android/setting.gradle
include ':react-native-firebase-crash-report'
project(':react-native-firebase-crash-report').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-firebase-crash-report/android')
Thanks for the help!
from react-native-firebase-crash-report.
Related Issues (15)
- Feature: Capture console.log instead of using separate log function HOT 7
- Assertion failed: (NO), function -[RNFirebaseCrashReport report:] HOT 3
- Android config lacks manual instructions HOT 1
- update README to reflect this change HOT 1
- Bitcode bundle could not be generated in Release HOT 1
- report() on iOS crash HOT 1
- Getting Multiple dex files define Error
- how can i see logs?
- How do i get it to send a report for Firebase Console?
- Log unhandled exceptions
- ld: library not found for -lGoogleToolboxForMac
- Feature: Support for source-maps to decode release stack traces HOT 3
- Why Android installation instructions are different that Firebase Default? HOT 1
- React native is now at RN30 - is this correct: compile 'com.facebook.react:react-native:0.20.+'?: HOT 1
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 react-native-firebase-crash-report.