How to completely disable NDK support in Android Studio -


we have multi-platform project, native support, developing in android studio using libgdx. have builds working desktop, ios, android, android wear, , html5.

on each of these platforms, have different "native" plugin using: static .a native library on ios, .dll on windows, bunch of .so files in android, , javascript library on html5. of these, except html5 version, built on separate platforms can't possibly built same android studio ndk build.

the problem each of .java files declare jni routines, android studio 1.4.x wants find source files, source files can't possibly compiled in ios project, , likewise pc project when running on mac.

the standard solution on add

sourcesets {     main {         jni.srcdirs = [] //disable automatic ndk-build     } } 

to android{} section, works android, android wear launcher projects, , not desktop, ios, html5, etc.

i want android studio give on trying compile ndk, because can't possibly done on non-android projects. other finding downgrade somewhere, how do that?

thanks!

so, decided figure out - , did!

of course, ndk builder plugin in intellij, have disable

  • go androidstudio installation,
  • find "plugins" directory
  • move or delete "android-ndk" folder

tada! no more ndk plugin!


Comments