i am creating a project which needs Azure Communication Service integrated, but i get this error while making a build in android using Unity.
CommandInvokationFailure: Gradle build failed.
C:\Program Files\Unity\Hub\Editor\2021.3.37f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath “C:\Program Files\Unity\Hub\Editor\2021.3.37f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-6.7.1.jar” org.gradle.launcher.GradleMain “-Dorg.gradle.jvmargs=-Xmx8192m” “assembleRelease”
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:launcher:mergeReleaseNativeLibs’.
A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction
2 files found with path ‘lib/arm64-v8a/libc++_shared.so’ from inputs:
- C:\Users\luqma.gradle\caches\transforms-2\files-2.1\f4753970427123f0838ff319a275e700\nr_common\jni
- C:\Users\luqma.gradle\caches\transforms-2\files-2.1\36c64e37ae3e7484b91fff773c1f684d\azure-communication-calling-1.3.0-beta.1\jni
If you are using jniLibs and CMake IMPORTED targets, see
Android Studio | Android Developers