1

My Android Studio project contains 2 modules, one is app, which is an application, another is a library named mymodule referred by app. I create two folders in mymodule:

src/main/jniLibs
src/debug/jniLibs

What I want is when building app in debug mode, mymodule switch jniLibs dir to src/debug/jniLibs and mymodule switch jniLibs to jni/main/jniLibs if build app in release mode, I just don't know how to configure in my build.gradle, can anyone help?

kiner_shah
  • 3,939
  • 7
  • 23
  • 37
楚狂人
  • 73
  • 5
  • Possible duplicate of [Build variants in Gradle for a Library Project in Android](http://stackoverflow.com/questions/17451803/build-variants-in-gradle-for-a-library-project-in-android) – azizbekian May 15 '17 at 13:54
  • @azizbekian Android Studio's integration with jni has changed so much over the past three years that I don't think a 3 year old question should be considered a duplicate. – Aidan Hoolachan May 16 '17 at 23:50
  • Could you post more information about your gradle version and the build.gradle for the native module, mymodule? – Aidan Hoolachan May 16 '17 at 23:51

0 Answers0