Android NDK: Warning: There are no modules to build in this project


I'm new in NDK development and I'm currently facing a problem, when I try to invoke the ndk build tool from cygwin terminal:

Android NDK: WARNING: There are no modules to build in this project!

I’m under windows (x64) and I use the r10d (64-bit) NDK. I try to invoke it from the root of my project that contains a jni folder with a simple .c file and an Android.mk:

LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) # Here we give our module name and source file(s) LOCAL_MODULE := mycfile LOCAL_SRC_FILES := mycfile.c APP_PLATFORM := android-19

Thank you for your help !


your <em>Android.mk</em> file is missing the macro that tells the ndk to actually build a module. Add this to the end of your file:


Btw, APP_PLATFORM variable has to be put inside <em>Application.mk</em> instead of <em>Android.mk</em>.


  • Android NDK Source Compiled & Build Successfully - But Function 'to_string' could not
  • Android.mk - what toolchain used by default?
  • Relation between the NDK version and the Android version
  • Visual Studio 2017 compatibality with boost 1.64.0/1.63.0 issue
  • overhead of reserving address space using mmap
  • SSLException: Connection has been shutdown: javax.net.ssl.SSLException: Tag mismatch
  • Wait for angular to finish updating the DOM
  • Redirect to trailng slash (htaccess)
  • MongoDB GeoJSON “Can't extract geo keys from object, malformed geometry?” when inserting type P
  • what is the purpose of “export as namespace foo”?
  • Why are YouTube videos using 'youtube.com/v' not loading
  • Does Apportable support to build library binary (.a/.so)?
  • Elasticsearch script query involving root and nested values
  • Jenkins: FATAL: Could not initialize class hudson.util.ProcessTree$UnixReflection
  • JBoss External Properties Files in Classpath
  • Unable to install Git-core+svn by MacPorts
  • Django simple Captcha “No module named fields” error
  • htaccess add www if not subdomain, if subdomain remove www
  • Could not find rake using whenever rails
  • Allowing both email and username for authentication
  • Switching to Release Build causes runtime error in Web Reference
  • Change Inet root folder for iis 7
  • Paperclip, set path outside of rails root folder
  • Get one-time binding to work for ng-if
  • Jenkins: How To Build multiple projects from a TFS repository?
  • Sony Xperia Z Tablet not found by adb
  • Javascript convert timezone issue
  • Why is the timeout on a windows udp receive socket always 500ms longer than set by SO_RCVTIMEO?
  • How do you troubleshoot character encoding problems?
  • QuartzCore.framework for Mono Develop
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • Proper folder structure for lots of source files
  • Load html files in TinyMce
  • How can I get HTML syntax highlighting in my editor for CakePHP?
  • How do you join a server to an Active Directory (domain)?
  • coudnt use logback because of log4j
  • Can Visual Studio XAML designer handle font family names with spaces as a resource?
  • Append folder name and increment by 1 using batch script
  • Django query for large number of relationships
  • How can i traverse a binary tree from right to left in java?