question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Conflicting with React Native

See original GitHub issue

Version

Add the version of the litho packages you use. You can paste the dependency section of the gradle file if you have one.

"lib"    : 'com.facebook.litho:litho-core:0.5.0',
"react"    : 'com.facebook.react:react-native:0.47'

Error while compiling

Execution failed for task ':app:transformNativeLibsWithMergeJniLibsForDebug'.
> More than one file was found with OS independent path 'lib/x86/libfb.so'

They are conflicting because of Yoga. I did try

packagingOptions {
        exclude '/lib/armeabi-v7a/libfb.so'
    }

but it didn’t help

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
dbof10commented, Aug 17, 2017

Thanks.

configurations.all {
        exclude group: 'com.facebook.yoga', module: 'yoga'
        exclude group: 'com.facebook.litho', module: 'litho-annotations'
        resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9'

    }

This should work for everyone

0reactions
passycommented, Aug 17, 2017

Thanks!

On Thu, Aug 17, 2017 at 17:09 Cuong Le notifications@github.com wrote:

Closed #224 https://github.com/facebook/litho/issues/224.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/facebook/litho/issues/224#event-1210442618, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAmsqqBIGSssNxwEFvvRnseX_TyTt0Iks5sZGVegaJpZM4O2lPO .

Pascal Hartig Software Engineer

http://passy.me/ Twitter: https://twitter.com/passy Google+: http://gplus.to/passy

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do you handle native library conflicts in React Native?
gitignored. Absolutely NO. Go through each of the file and solve the merge if you like both native libraries to work.if not, you...
Read more >
Handling dependencies conflict and locking in React Native
Via Gradle, we can exclude the conflicting module com.google.android.gm from both our dependencies like so and then ask for a specific version.
Read more >
Peer Dependency Conflict for React Native Projects < 0.69.0
React Native projects using any version less than 0.69.0 and have react-native-fs as a dependency produce the following peer dependency error:.
Read more >
Keep getting this error and i've no idea about the solution ...
It seems, judging from the error, that one of the dependencies is installed with a wrong version (looking for v3 and is finding...
Read more >
Resolving Merge Conflicts in React-Native - YouTube
Resolving Merge Conflicts in # ReactNative : How to fix merge conflicts in Pods, Podfile.lock, package-lock.json, yarn.lock and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found