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

Build failed with an exception #5

Closed
manishpatelgt opened this issue Jun 11, 2020 · 4 comments
Closed

Build failed with an exception #5

manishpatelgt opened this issue Jun 11, 2020 · 4 comments

Comments

@manishpatelgt
Copy link

manishpatelgt commented Jun 11, 2020

I am getting error. I have added opus module in my project and other required files

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':opus:mergeDebugNativeLibs'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > More than one file was found with OS independent path 'lib/x86_64/libopus.so'. If you are using jniLibs and CMake IMPORTED targets, see https://developer.android.com/studio/preview/features#automatic_packaging_of_prebuilt_dependencies_used_by_cmake
 

I have added files from your demo project

app(level) -> jni
app(level) -> libs with all arms folders

Any idea how to resolve ?

@theeasiestway
Copy link
Owner

If you want to use just Opus codec for encoding and decoding audio without editing a source code it'll be more easily to add the codec to your project as .aar library, more insctructions how to do it you can find in a readme:
https://github.com/theeasiestway/android-opus-codec/blob/develop/README.md#compiled-library

@manishpatelgt
Copy link
Author

manishpatelgt commented Jun 11, 2020

In that case i don't need to add any files under JNI, is that right ? @theeasiestway

@manishpatelgt
Copy link
Author

@theeasiestway opus.aar worked very well. Thanks

@theeasiestway
Copy link
Owner

In that case i don't need to add any files under JNI, is that right ? @theeasiestway

yes you don't need it

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

2 participants