you could just change the sourceset from gradle to point somewhere else
than src/main/jni so that it doesn't look in src/main/jni

For instance

android {
   sourceSets.main.jni.srcDirs = ['src/main/nojni']
}


On Mon, Dec 23, 2013 at 5:57 AM, orip <ori...@gmail.com> wrote:

> I'm trying to use the plugin's new NDK support but failing so far:
>
> http://stackoverflow.com/questions/20744578/ndk-includes-and-the-android-gradle-plugin-version-0-7
>
> My existing kludge solution works fine in 0.6.+, in which I run ndk-build
> by hand for the sources in src/main/jni and have a task to include the .so
> files in a jar automatically. In 0.7.+, the gradle plugin insists on trying
> to build my ndk sources.
>
> I renamed the path to src/main/jni-noconflict and hacked the build to make
> it work (specifying LOCAL_PATH for each source file, specifying
> NDK_APPLICATION_MK when running ndk-build), but is there a way to simply
> disable the automatic ndk detection?
>
> --
> 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 adt-dev+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com

Please do not send me questions directly. Thanks!

-- 
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 adt-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to