ndk builds fails with a single *.c or *.cpp file in jni directory, but works if there are more.

8 views
Skip to first unread message

Alexander Ruditsky

unread,
Jul 27, 2014, 2:51:38 PM7/27/14
to gradle-androi...@googlegroups.com
I have installed Android Studio 0.8.2, gradle-1.12 and tried to build the ndk* samples found in gradle-samples-0.11 (from http://tools.android.com/tech-docs/new-build-system
running "gradle build" from the command line.

However, only some of the ndk* samples built successfully. 
It is interesting that the ones which did build, contain more than one source file in the jni directory.
Adding an empty a.c file to the jni directory of the examples which do not build fixes the build.

Anybody experiences this behavior? 

Reply all
Reply to author
Forward
0 new messages