Skip to content

Commit d0a4f97

Browse files
Add a pick first rule. (#105)
NOTE(kudo): sometimes cmake will bundle linked dependencies. when the issue happens, there are build errors like this: ``` Execution failed for task ':react-native-v8:mergeReleaseNativeLibs'. > A failure occurred while executing http://com.android.build.gradle.internal.tasks.MergeJavaResWorkAction > 2 files found with path 'lib/arm64-v8a/libv8android.so' from inputs: - /path/to/app/android/node_modules/react-native-v8/android/build/intermediates/merged_jni_libs/release/out - /path/to/app/android//node_modules/react-native-v8/android/build/intermediates/cmake/release/obj ``` since the error happens inside react-native-v8 where it under our control, it's safe to pick any libv8android.so. Co-authored-by: Rohit Tyagi <rtyagi@anar.biz>
1 parent fef6bf1 commit d0a4f97

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

android/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ android {
154154
"**/libglog.so",
155155
"**/libreactnativejni.so",
156156
]
157+
pickFirst "**/libv8android.so"
157158
}
158159
configurations {
159160
extractHeaders

0 commit comments

Comments
 (0)