I've been trying to solve a problem about Android build, but couldn't figure out how to solve it. Basically, I am trying to build an Android project using Gradle. It works perfect, but the size of the final apk is 7MB more than when I builded with Eclipse.
When I unzip the apk, I see that the JNI Libs are included twice. Which is different from the Eclipse build that includes it only one time. Here is the paths I can find them in the APK:
- lib/armeabi
- lib/armeabi-v7a
- main/jniLibs/armeabi
- main/jniLibs/armeabi-v7a
In my project, those two files are in:
- android/app/src/main/jniLibs/armeabi
- android/app/src/main/jniLibs/armeabi-v7a
I have two different build.graddle files in:
- android/
- android/app/
None of them contains anything related to the JNI Libs.
To build a release, I use the command:
./gradlew assembleRelease
And everything works fine. I use Gradle 1.10.
I was wondering if someone ever encountered the problem and find a solution to avoid to the JNI Libs to be included twice in the APK.
Thanks :)