mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
fix build failure due to duplicate libc++_shared.so (#27417)
Summary: This PR fixes build failure caused by duplicate libc++_shared.so, because dependencies (like Flipper) might include one in addition to RN. ## Changelog [Android] [Changed] - fix build failure due to duplicate libc++_shared.so Pull Request resolved: https://github.com/facebook/react-native/pull/27417 Test Plan: Create a project from master, then build and run. Build will fail without the patch, and succeed with the patch. Differential Revision: D18827583 Pulled By: mdvacca fbshipit-source-id: 1272cedd299278403f87215c36aaf58217eae3c5
This commit is contained in:
committed by
Facebook Github Bot
parent
90ab8b89e8
commit
2fd50882b5
@@ -163,6 +163,14 @@ android {
|
||||
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
|
||||
}
|
||||
}
|
||||
|
||||
packagingOptions {
|
||||
pickFirst "lib/armeabi-v7a/libc++_shared.so"
|
||||
pickFirst "lib/arm64-v8a/libc++_shared.so"
|
||||
pickFirst "lib/x86/libc++_shared.so"
|
||||
pickFirst "lib/x86_64/libc++_shared.so"
|
||||
}
|
||||
|
||||
// applicationVariants are e.g. debug, release
|
||||
applicationVariants.all { variant ->
|
||||
variant.outputs.each { output ->
|
||||
|
||||
Reference in New Issue
Block a user