Skip to content
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

Compile Error #24

Open
jacky1234 opened this issue Jun 12, 2022 · 5 comments
Open

Compile Error #24

jacky1234 opened this issue Jun 12, 2022 · 5 comments

Comments

@jacky1234
Copy link

环境:
image

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

  • /Users/yingci/myWidget/android/github/LearningVideo/app/build/intermediates/merged_jni_libs/debug/out/armeabi-v7a/libavcodec.so
  • /Users/yingci/myWidget/android/github/LearningVideo/app/build/intermediates/cxx/Debug/c2m2ip3a/obj/armeabi-v7a/libavcodec.so
    If you are using jniLibs and CMake IMPORTED targets, see
    https://developer.android.com/r/tools/jniLibs-vs-imported-targets

image

@LianJ333
Copy link

LianJ333 commented Jun 12, 2022 via email

@ChenLittlePing
Copy link
Owner

ChenLittlePing commented Jun 12, 2022 via email

@yangxu4536
Copy link

可以在app/build.gradle文件中添加以下配置:

android {
    packagingOptions {
        pickFirst 'lib/armeabi-v7a/libavcodec.so'
        pickFirst 'lib/armeabi-v7a/libswscale.so'
        pickFirst 'lib/armeabi-v7a/libavdevice.so'
        pickFirst 'lib/armeabi-v7a/libh264.so'
        pickFirst 'lib/armeabi-v7a/libavfilter.so'
        pickFirst 'lib/armeabi-v7a/libavutil.so'
        pickFirst 'lib/armeabi-v7a/libswresample.so'
        pickFirst 'lib/armeabi-v7a/libavformat.so'  
    }  
}

@jacky1234

@ChenLittlePing
Copy link
Owner

ChenLittlePing commented Aug 17, 2022 via email

@LianJ333
Copy link

LianJ333 commented Aug 17, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants