-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
Building React Native from source doesn't work #11677
Comments
building RN from source works for us. Looking at your project here are some pointers:
If i remember correctly calling it ReactAndroid excluded RN dependency itself.
|
@chirag04 thank you for response I made changes that you suggested (I hope I did it right) skv-headless/rn-build-fail@97649bf but I have same error 😞 |
@skv-headless , man I with you. I can't get rid of the |
I've got the same issue when trying to build from a fork of React Native 0.41.2. Have spent the whole afternoon trying to get it to work with all sorts of different fixes suggested arounf the web but it doesn't want to work. As soon as I switch back and point at 0.41.2 from npm it works fine, even when building from source!! I haven't managed to figure out what's different between building from source on npm and from source on my fork... |
Somebody with an solution ?? I'm with the same error and I can not found no one solution |
Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally! If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:
If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution. |
Description
Building React Native from source doesn't work
FIRMessagingModule.java:36: error: FIRMessagingModule is not abstract and does not override abstract method onActivityResult(int,int,Intent) in ActivityEventListener
I'm pretty sure that gradle choose old
react-native
version forreact-native-fcm
Reproduction
react-native init AwesomeProject
npm install react-native-fcm --save
react-native link react-native-fcm
here https://github.com/skv-headless/rn-build-fail project with this steps.
exclude
should work but it doesn't make any difference https://facebook.github.io/react-native/docs/android-building-from-source.html#4-making-3rd-party-modules-use-your-forkAll projects which behave same way set
repositories { mavenCentral() }
inside theirbuild.gradle
Solution
I've added to
package.json
"postinstall": "find . -type f -name build.gradle -not -path \"*/react-native/*\" -not -path \"*/Examples/*\" -not -path \"*/examples/*\" -print0 -exec sed -i '' \"s/.*com.facebook.react:react-native:.*/ compile project(':ReactAndroid')/\" {} +"
but I don't think it is the best solution.
Additional Information
The text was updated successfully, but these errors were encountered: