Facing error while build and run android project

> Task :app:generateJsonModelDebug FAILED
E:/Android/Sdk/ndk/21.3.6528147/build//../build/core/build-binary.mk:651: Android NDK: Module soundtouch depends on undefined modules: -lgcc    
make: *** No rule to make target 'D:/GR8-Masters/MusicAppDemoAmit/MusicAppDemoAmit/app/jni/../../SoundTouch/AAFilter.cpp', needed by 'D:/GR8-Masters/MusicAppDemoAmit/MusicAppDemoAmit/app/build/intermediates/ndkBuild/debug/obj/local/x86/objs/soundtouch/__/__/SoundTouch/AAFilter.o'.  Stop.

Execution failed for task ':app:generateJsonModelDebug'.
> error when building with ndkBuild using D:GR8-MastersMusicAppDemoAmitMusicAppDemoAmitappjniAndroid.mk: Build command failed.
  Error while executing process E:AndroidSdkndk.3.6528147ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=D:GR8-MastersMusicAppDemoAmitMusicAppDemoAmitappjniAndroid.mk NDK_APPLICATION_MK=D:GR8-MastersMusicAppDemoAmitMusicAppDemoAmitappjniApplication.mk APP_ABI=x86 NDK_ALL_ABIS=x86 NDK_DEBUG=1 APP_PLATFORM=android-21 NDK_OUT=D:/GR8-Masters/MusicAppDemoAmit/MusicAppDemoAmit/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=D:GR8-MastersMusicAppDemoAmitMusicAppDemoAmitappbuildintermediatesndkBuilddebuglib NDK_APPLICATION=jni/Application.mk APP_ALLOW_MISSING_DEPS:=true APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n}
  md "D:GR8-MastersMusicAppDemoAmitMusicAppDemoAmitappbuildintermediatesndkBuilddebuglibx86" >NUL 2>NUL || rem
  E:/Android/Sdk/ndk/21.3.6528147/build//../prebuilt/windows-x86_64/bin/echo.exe [x86] "Gdbserver      ": "[i686-linux-android] D:GR8-MastersMusicAppDemoAmitMusicAppDemoAmitappbuildintermediatesndkBuilddebuglib/x86/gdbserver"
  copy /b/y "E:AndroidSdkndk.3.6528147build..prebuiltandroid-x86gdbservergdbserver" "D:GR8-MastersMusicAppDemoAmitMusicAppDemoAmitappbuildintermediatesndkBuilddebuglibx86gdbserver" > NUL
  E:/Android/Sdk/ndk/21.3.6528147/build//../prebuilt/windows-x86_64/bin/echo.exe [x86] "Gdbsetup       ": "D:GR8-MastersMusicAppDemoAmitMusicAppDemoAmitappbuildintermediatesndkBuilddebuglib/x86/gdb.setup"
  E:/Android/Sdk/ndk/21.3.6528147/build//../prebuilt/windows-x86_64/bin/echo.exe "set solib-search-path D:/GR8-Masters/MusicAppDemoAmit/MusicAppDemoAmit/app/build/intermediates/ndkBuild/debug/obj/local/x86" > D:GR8-MastersMusicAppDemoAmitMusicAppDemoAmitappbuildintermediatesndkBuilddebuglib/x86/gdb.setup
  E:/Android/Sdk/ndk/21.3.6528147/build//../prebuilt/windows-x86_64/bin/echo.exe "directory E:/Android/Sdk/ndk/21.3.6528147/build//../toolchains/llvm/prebuilt/windows-x86_64/sysroot E:/Android/Sdk/ndk/21.3.6528147/build//../sources/android/support E:/Android/Sdk/ndk/21.3.6528147/build//../sources/cxx-stl/llvm-libc++ E:/Android/Sdk/ndk/21.3.6528147/build//../sources/cxx-stl/llvm-libc++abi/include D:/GR8-Masters/MusicAppDemoAmit/MusicAppDemoAmit/app/jni/../../../include D:/GR8-Masters/MusicAppDemoAmit/MusicAppDemoAmit/app/jni/../../SoundStretch E:/Android/Sdk/ndk/21.3.6528147/build//../sources/cxx-stl/llvm-libc++/include E:/Android/Sdk/ndk/21.3.6528147/build//../sources/cxx-stl/llvm-libc++/../llvm-libc++abi/include" >> D:GR8-MastersMusicAppDemoAmitMusicAppDemoAmitappbuildintermediatesndkBuilddebuglib/x86/gdb.setup
  md "D:GR8-MastersMusicAppDemoAmitMusicAppDemoAmitappbuildintermediatesndkBuilddebugobjlocalx86objssoundtouch" >NUL 2>NUL || rem
  E:/Android/Sdk/ndk/21.3.6528147/build//../prebuilt/windows-x86_64/bin/echo.exe [x86] "Compile++      ": "soundtouch <= soundtouch-jni.cpp"
  E:/Android/Sdk/ndk/21.3.6528147/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe -MMD -MP -MF D:/GR8-Masters/MusicAppDemoAmit/MusicAppDemoAmit/app/build/intermediates/ndkBuild/debug/obj/local/x86/objs/soundtouch/soundtouch-jni.o.d -target i686-none-linux-android21 -fdata-sections -ffunction-sections -fstack-protector-strong -funwind-tables -no-canonical-prefixes  --sysroot E:/Android/Sdk/ndk/21.3.6528147/build//../toolchains/llvm/prebuilt/windows-x86_64/sysroot -g -Wno-invalid-command-line-argument -Wno-unused-command-line-argument  -D_FORTIFY_SOURCE=2 -fno-exceptions -fno-rtti -fPIC -O2 -DNDEBUG  -ID:/GR8-Masters/MusicAppDemoAmit/MusicAppDemoAmit/app/jni/../../../include -ID:/GR8-Masters/MusicAppDemoAmit/MusicAppDemoAmit/app/jni/../../SoundStretch -IE:/Android/Sdk/ndk/21.3.6528147/build//../sources/cxx-stl/llvm-libc++/include -IE:/Android/Sdk/ndk/21.3.6528147/build//../sources/cxx-stl/llvm-libc++/../llvm-libc++abi/include -ID:/GR8-Masters/MusicAppDemoAmit/MusicAppDemoAmit/app/jni  -fexceptions  -DANDROID -fvisibility=hidden -I ../../../include -fdata-sections -ffunction-sections -nostdinc++ -Wformat -Werror=format-security -mstackrealign -fno-strict-aliasing  -c  D:/GR8-Masters/MusicAppDemoAmit/MusicAppDemoAmit/app/jni/soundtouch-jni.cpp -o D:/GR8-Masters/MusicAppDemoAmit/MusicAppDemoAmit/app/build/intermediates/ndkBuild/debug/obj/local/x86/objs/soundtouch/soundtouch-jni.o

* 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.


Cause: error when building with ndkBuild using D:GR8-MastersMusicAppDemoAmitMusicAppDemoAmitappjniAndroid.mk: Build command failed.
Error while executing process E:AndroidSdkndk.3.6528147ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=D:GR8-MastersMusicAppDemoAmitMusicAppDemoAmitappjniAndroid.mk NDK_APPLICATION_MK=D:GR8-MastersMusicAppDemoAmitMusicAppDemoAmitappjniApplication.mk APP_ABI=x86 NDK_ALL_ABIS=x86 NDK_DEBUG=1 APP_PLATFORM=android-21 NDK_OUT=D:/GR8-Masters/MusicAppDemoAmit/MusicAppDemoAmit/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=D:GR8-MastersMusicAppDemoAmitMusicAppDemoAmitappbuildintermediatesndkBuilddebuglib NDK_APPLICATION=jni/Application.mk APP_ALLOW_MISSING_DEPS:=true APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n}
md "D:GR8-MastersMusicAppDemoAmitMusicAppDemoAmitappbuildintermediatesndkBuilddebuglibx86" >NUL 2>NUL || rem
E:/Android/Sdk/ndk/21.3.6528147/build//../prebuilt/windows-x86_64/bin/echo.exe [x86] "Gdbserver      ": "[i686-linux-android] D:GR8-MastersMusicAppDemoAmitMusicAppDemoAmitappbuildintermediatesndkBuilddebuglib/x86/gdbserver"
copy /b/y "E:AndroidSdkndk.3.6528147build..prebuiltandroid-x86gdbservergdbserver" "D:GR8-MastersMusicAppDemoAmitMusicAppDemoAmitappbuildintermediatesndkBuilddebuglibx86gdbserver" > NUL
E:/Android/Sdk/ndk/21.3.6528147/build//../prebuilt/windows-x86_64/bin/echo.exe [x86] "Gdbsetup       ": "D:GR8-MastersMusicAppDemoAmitMusicAppDemoAmitappbuildintermediatesndkBuilddebuglib/x86/gdb.setup"
E:/Android/Sdk/ndk/21.3.6528147/build//../prebuilt/windows-x86_64/bin/echo.exe "set solib-search-path D:/GR8-Masters/MusicAppDemoAmit/MusicAppDemoAmit/app/build/intermediates/ndkBuild/debug/obj/local/x86" > D:GR8-MastersMusicAppDemoAmitMusicAppDemoAmitappbuildintermediatesndkBuilddebuglib/x86/gdb.setup
E:/Android/Sdk/ndk/21.3.6528147/build//../prebuilt/windows-x86_64/bin/echo.exe "directory E:/Android/Sdk/ndk/21.3.6528147/build//../toolchains/llvm/prebuilt/windows-x86_64/sysroot E:/Android/Sdk/ndk/21.3.6528147/build//../sources/android/support E:/Android/Sdk/ndk/21.3.6528147/build//../sources/cxx-stl/llvm-libc++ E:/Android/Sdk/ndk/21.3.6528147/build//../sources/cxx-stl/llvm-libc++abi/include D:/GR8-Masters/MusicAppDemoAmit/MusicAppDemoAmit/app/jni/../../../include D:/GR8-Masters/MusicAppDemoAmit/MusicAppDemoAmit/app/jni/../../SoundStretch E:/Android/Sdk/ndk/21.3.6528147/build//../sources/cxx-stl/llvm-libc++/include E:/Android/Sdk/ndk/21.3.6528147/build//../sources/cxx-stl/llvm-libc++/../llvm-libc++abi/include" >> D:GR8-MastersMusicAppDemoAmitMusicAppDemoAmitappbuildintermediatesndkBuilddebuglib/x86/gdb.setup
md "D:GR8-MastersMusicAppDemoAmitMusicAppDemoAmitappbuildintermediatesndkBuilddebugobjlocalx86objssoundtouch" >NUL 2>NUL || rem
E:/Android/Sdk/ndk/21.3.6528147/build//../prebuilt/windows-x86_64/bin/echo.exe [x86] "Compile++      ": "soundtouch <= soundtouch-jni.cpp"
E:/Android/Sdk/ndk/21.3.6528147/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe -MMD -MP -MF D:/GR8-Masters/MusicAppDemoAmit/MusicAppDemoAmit/app/build/intermediates/ndkBuild/debug/obj/local/x86/objs/soundtouch/soundtouch-jni.o.d -target i686-none-linux-android21 -fdata-sections -ffunction-sections -fstack-protector-strong -funwind-tables -no-canonical-prefixes  --sysroot E:/Android/Sdk/ndk/21.3.6528147/build//../toolchains/llvm/prebuilt/windows-x86_64/sysroot -g -Wno-invalid-command-line-argument -Wno-unused-command-line-argument  -D_FORTIFY_SOURCE=2 -fno-exceptions -fno-rtti -fPIC -O2 -DNDEBUG  -ID:/GR8-Masters/MusicAppDemoAmit/MusicAppDemoAmit/app/jni/../../../include -ID:/GR8-Masters/MusicAppDemoAmit/MusicAppDemoAmit/app/jni/../../SoundStretch -IE:/Android/Sdk/ndk/21.3.6528147/build//../sources/cxx-stl/llvm-libc++/include -IE:/Android/Sdk/ndk/21.3.6528147/build//../sources/cxx-stl/llvm-libc++/../llvm-libc++abi/include -ID:/GR8-Masters/MusicAppDemoAmit/MusicAppDemoAmit/app/jni  -fexceptions  -DANDROID -fvisibility=hidden -I ../../../include -fdata-sections -ffunction-sections -nostdinc++ -Wformat -Werror=format-security -mstackrealign -fno-strict-aliasing  -c  D:/GR8-Masters/MusicAppDemoAmit/MusicAppDemoAmit/app/jni/soundtouch-jni.cpp -o D:/GR8-Masters/MusicAppDemoAmit/MusicAppDemoAmit/app/build/intermediates/ndkBuild/debug/obj/local/x86/objs/soundtouch/soundtouch-jni.o

E:/Android/Sdk/ndk/21.3.6528147/build//../build/core/build-binary.mk:651: Android NDK: Module soundtouch depends on undefined modules: -lgcc    
make: *** No rule to make target 'D:/GR8-Masters/MusicAppDemoAmit/MusicAppDemoAmit/app/jni/../../SoundTouch/AAFilter.cpp', needed by 'D:/GR8-Masters/MusicAppDemoAmit/MusicAppDemoAmit/app/build/intermediates/ndkBuild/debug/obj/local/x86/objs/soundtouch/__/__/SoundTouch/AAFilter.o'.  Stop.

Source: Windows Questions C++

LEAVE A COMMENT