Search code examples
androidandroid-ndkmakefilejava-native-interfacecygwin

Android ndk-build failed


I'm trying to debug .so library, using NDK for Android.

I'm able to build .so library, using ndk-build. But when I want to debug my library, I set ndk-build NDK_DEBUG = 1 and receive following error: make: * empty variable name. Stop.

And also I receive the error: Unable to launch cygpath. Is Cygwin on the path? Appreciate any help, thanks


Solution

  • You must remove the spaces in the assignment, ie

    ndk-build NDK_DEBUG=1
    

    rather than

    ndk-build NDK_DEBUG = 1