3

I want to set jniDebuggable to false in AS's debug version. But it seems that it doesn't work even I set like this: debug { jniDebuggable false } Since my jni takes long time, I want to use the release version(faster than debug) when I debug my Java code. Who can tell me how to do?

Alex Cohn
  • 54,176
  • 9
  • 103
  • 290
Granis
  • 41
  • 1
  • I use cmake to build the jni. – Granis Sep 11 '17 at 01:52
  • You probably want to build a release version of your C++ library in the Debug configuration of your Android Studio project. This has nothing to do with isDebuggable. You can override the cmake build arguments in build.gradle script. – Alex Cohn Sep 11 '17 at 04:56
  • You can use this [answer](https://stackoverflow.com/a/45543443/192373) which is kind of reverse of your question. – Alex Cohn Sep 11 '17 at 06:01
  • 1
    Thanks, it works! – Granis Sep 13 '17 at 11:46

0 Answers0