I'm using Gradle 2.4 and Android Studio 1.3.2 to build an NDK project.  If 
I attempt to reference symbols in libOpenSLES.so, I get "undefined 
reference" on building.  I have verified that ndk.dir is correct and the 
libraries exist (for the platform and architecture), and that they contain 
the symbols in question (TARGET_ARCH := arm; TARGET_PLATFORM := android-21; 
TARGET_ARCH_ABI := arch64-v8a).  I've added command line options 
"--stacktrace and --debug" to File/Settings/Compiler/Command-line Options.  
jni/Android.mk contains: LOCAL_LDLIBS := -lOpenSLES -llog. I've tried 
adding verbose options to LOCAL_LDFLAGS, LOCAL_CFLAGS, or LOCAL_CPPFLAGS 
(and have also tried setting "--sysroot" and "-L" paths on those 
definitions).  I'd like to resolve the reason for the undefined references, 
but am also finding I cannot even get a trace which showed what options 
were passed to gcc (or g++) for linking using Gradle invoked through 
Android Studio.  How do I get a log from Gradle which shows the options 
passed for linking, and I'd be happy if anyone knows why it does not 
resolve references from a library which has been included.  Thanks, Bill.

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to