错误:任务':app:transformDexArchiveWithExternalLibsDexMergerForArmDebug'的执行失败

时间:2018-08-27 08:51:09

标签: android android-studio gradle android-ndk opus

使用NDK Opus交互式音频编解码器 运行应用程序时运行时构建失败

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForArmDebug'.
> java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 6s

Opus库失败:生成失败,并出现异常。

* What went wrong:
Execution failed for task ':app:externalNativeBuildArmDebug'.
> Build command failed.
  Error while executing process D:\AndroidSetup\Android_Studio_SDK\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=E:\AndroidProjects\JustYapProject\AndroidJustYap24\JustYap\app\src\main\jni\Android.mk NDK_APPLICATION_MK=E:\AndroidProjects\JustYapProject\AndroidJustYap24\JustYap\app\src\main\jni\Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=android-21 NDK_OUT=E:/AndroidProjects/JustYapProject/AndroidJustYap24/JustYap/app/build/intermediates/ndkBuild/arm/debug/obj NDK_LIBS_OUT=E:\AndroidProjects\JustYapProject\AndroidJustYap24\JustYap\app\build\intermediates\ndkBuild\arm\debug\lib E:/AndroidProjects/JustYapProject/AndroidJustYap24/JustYap/app/build/intermediates/ndkBuild/arm/debug/obj/local/armeabi-v7a/libsenz.so}
  [armeabi-v7a] Compile thumb  : senz <= LP_variable_cutoff.c
  error: error opening 'E:/AndroidProjects/JustYapProject/AndroidJustYap24/JustYap/app/build/intermediates/ndkBuild/arm/debug/obj/local/armeabi-v7a/objs-debug/senz/E_/AndroidProjects/JustYapProject/AndroidJustYap24/JustYap/app/src/main/jni/opus/silk/LP_variable_cutoff.o.d': No such file or directory
  1 error generated.
  make: *** [E:/AndroidProjects/JustYapProject/AndroidJustYap24/JustYap/app/build/intermediates/ndkBuild/arm/debug/obj/local/armeabi-v7a/objs-debug/senz/E_/AndroidProjects/JustYapProject/AndroidJustYap24/JustYap/app/src/main/jni/opus/silk/LP_variable_cutoff.o] Error 1


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 8s

63 actionable tasks: 9 executed, 54 up-to-date

当Make project,Clean,Rebuild,Refresh Linked C ++项目执行时,Opus编解码器库将从\ app \ src \ main \ jni执行。

Opus交互式音频编解码器libopus 1.3在编译时自动创建.so文件时出错

错误1:app:externalNativeBuildX86Debug失败

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:externalNativeBuildX86Debug'.
> Build command failed.
  Error while executing process D:\AndroidSetup\Android_Studio_SDK\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=E:\AndroidProjects\JustYapProject\AndroidJustYap24\JustYap\app\src\main\jni\Android.mk NDK_APPLICATION_MK=E:\AndroidProjects\JustYapProject\AndroidJustYap24\JustYap\app\src\main\jni\Application.mk APP_ABI=x86 NDK_ALL_ABIS=x86 NDK_DEBUG=1 APP_PLATFORM=android-21 NDK_OUT=E:/AndroidProjects/JustYapProject/AndroidJustYap24/JustYap/app/build/intermediates/ndkBuild/x86/debug/obj NDK_LIBS_OUT=E:\AndroidProjects\JustYapProject\AndroidJustYap24\JustYap\app\build\intermediates\ndkBuild\x86\debug\lib E:/AndroidProjects/JustYapProject/AndroidJustYap24/JustYap/app/build/intermediates/ndkBuild/x86/debug/obj/local/x86/libsenz.so}
  [x86] Compile        : senz <= CNG.c
  [x86] Compile        : senz <= code_signs.c
  [x86] Compile        : senz <= init_decoder.c
  [x86] Compile        : senz <= decode_core.c
  [x86] Compile        : senz <= decode_frame.c
  [x86] Compile        : senz <= decode_parameters.c
  [x86] Compile        : senz <= decode_indices.c
  [x86] Compile        : senz <= decode_pulses.c
  [x86] Compile        : senz <= decoder_set_fs.c
  [x86] Compile        : senz <= dec_API.c
  [x86] Compile        : senz <= enc_API.c
  [x86] Compile        : senz <= encode_indices.c
  [x86] Compile        : senz <= encode_pulses.c
  [x86] Compile        : senz <= gain_quant.c
  [x86] Compile        : senz <= interpolate.c
  [x86] Compile        : senz <= LP_variable_cutoff.c
  [x86] Compile        : senz <= NLSF_decode.c
  [x86] Compile        : senz <= NSQ.c
  [x86] Compile        : senz <= NSQ_del_dec.c
  [x86] Compile        : senz <= PLC.c
  [x86] Compile        : senz <= shell_coder.c
  [x86] Compile        : senz <= tables_gain.c
  [x86] Compile        : senz <= tables_LTP.c
  [x86] Compile        : senz <= tables_NLSF_CB_NB_MB.c
  [x86] Compile        : senz <= tables_NLSF_CB_WB.c
  [x86] Compile        : senz <= tables_other.c
  [x86] Compile        : senz <= tables_pitch_lag.c
  [x86] Compile        : senz <= tables_pulses_per_block.c
  [x86] Compile        : senz <= VAD.c
  [x86] Compile        : senz <= control_audio_bandwidth.c
  [x86] Compile        : senz <= quant_LTP_gains.c
  [x86] Compile        : senz <= VQ_WMat_EC.c
  [x86] Compile        : senz <= HP_variable_cutoff.c
  [x86] Compile        : senz <= NLSF_encode.c
  [x86] Compile        : senz <= NLSF_VQ.c
  [x86] Compile        : senz <= NLSF_unpack.c
  [x86] Compile        : senz <= NLSF_del_dec_quant.c
  [x86] Compile        : senz <= process_NLSFs.c
  [x86] Compile        : senz <= stereo_LR_to_MS.c
  [x86] Compile        : senz <= stereo_MS_to_LR.c
  [x86] Compile        : senz <= check_control_input.c
  [x86] Compile        : senz <= control_SNR.c
  [x86] Compile        : senz <= init_encoder.c
  [x86] Compile        : senz <= control_codec.c
  [x86] Compile        : senz <= A2NLSF.c
  [x86] Compile        : senz <= ana_filt_bank_1.c
  [x86] Compile        : senz <= biquad_alt.c
  [x86] Compile        : senz <= bwexpander_32.c
  [x86] Compile        : senz <= bwexpander.c
  [x86] Compile        : senz <= debug.c
  [x86] Compile        : senz <= decode_pitch.c
  [x86] Compile        : senz <= inner_prod_aligned.c
  [x86] Compile        : senz <= lin2log.c
  [x86] Compile        : senz <= log2lin.c
  [x86] Compile        : senz <= LPC_analysis_filter.c
  [x86] Compile        : senz <= LPC_inv_pred_gain.c
  [x86] Compile        : senz <= table_LSF_cos.c
  [x86] Compile        : senz <= NLSF2A.c
  [x86] Compile        : senz <= NLSF_stabilize.c
  [x86] Compile        : senz <= NLSF_VQ_weights_laroia.c
  [x86] Compile        : senz <= pitch_est_tables.c
  [x86] Compile        : senz <= resampler.c
  [x86] Compile        : senz <= resampler_down2_3.c
  [x86] Compile        : senz <= resampler_down2.c
  [x86] Compile        : senz <= resampler_private_AR2.c
  [x86] Compile        : senz <= resampler_private_down_FIR.c
  error: error opening 'E:/AndroidProjects/JustYapProject/AndroidJustYap24/JustYap/app/build/intermediates/ndkBuild/x86/debug/obj/local/x86/objs-debug/senz/E_/AndroidProjects/JustYapProject/AndroidJustYap24/JustYap/app/src/main/jni/opus/silk/resampler_private_down_FIR.o.d': No such file or directory
  1 error generated.
  make: *** [E:/AndroidProjects/JustYapProject/AndroidJustYap24/JustYap/app/build/intermediates/ndkBuild/x86/debug/obj/local/x86/objs-debug/senz/E_/AndroidProjects/JustYapProject/AndroidJustYap24/JustYap/app/src/main/jni/opus/silk/resampler_private_down_FIR.o] Error 1


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 2s

43 actionable tasks: 43 executed

0 个答案:

没有答案