0

I am trying to build an executable with NDK. However I am getting the following error:

Tools/android-ndk-r14b/build/core/build-binary.mk:687: Android NDK: Module ABCD depends on undefined modules: cutils c

Tools/android-ndk-r14b/build/core/build-binary.mk:700: *** Android NDK: Aborting (set APP_ALLOW_MISSING_DEPS=true to allow missing dependencies) . Stop.

How can I fix it?

ChrisGPT was on strike
  • 127,765
  • 105
  • 273
  • 257

1 Answers1

1

Just remove cutils and c from LOCAL_SHARED_LIBRARIES and LOCAL_STATIC_LIBRARIES. That's always been a no-op in your build file: https://github.com/android-ndk/ndk/issues/208

Dan Albert
  • 10,079
  • 2
  • 36
  • 79