본문 바로가기
디버깅

[Android/ReactNative] 에러 Execution failed for task ':app:mergeDebugNativeLibs'.> A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction

by 밥바비 2023. 1. 27.
반응형

문제 / 에러

Execution failed for task ':app:mergeDebugNativeLibs'.

> A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction

   > 2 files found with path 'lib/armeabi-v7a/libfbjni.so' from inputs:

      - .../.gradle/caches/transforms-3/94630c88e349bae0f6d55c8b65e27f7e/transformed/jetified-react-native-0.71.0-rc.0-debug/jni

      - .../.gradle/caches/transforms-3/97249ed07ab223f4e306e1817bb17058/transformed/jetified-fbjni-0.3.0/jni

     If you are using jniLibs and CMake IMPORTED targets, see

     https://developer.android.com/r/tools/jniLibs-vs-imported-targets

 

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

반응형

해결방법

/app/build.gradle 에 아래 코드 추가 후 재빌드하면 해결됨!

allprojects {
    configurations.all {
        resolutionStrategy {
            force 'com.facebook.react:react-native:0.63.4' //프로젝트에서 사용하는 버전 입력
        }
    }
}

참고 : https://github.com/facebook/react-native/issues/35215#issuecomment-1304878829

 

Execution failed for task ':app:mergeDebugNativeLibs'. · Issue #35215 · facebook/react-native

Description FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':app:mergeDebugNativeLibs'. A failure occurred while executing com.android.build.gradle.inte...

github.com

반응형

'디버깅' 카테고리의 다른 글

[Flutter] Unable to find bundled Java version 에러 해결방법  (0) 2023.02.03

댓글