I noticed that despite removing the lines
LOCAL_WHOLE_STATIC_LIBRARIES = box2d_static
from the android.mk file located in my android project jni directory, those libraries were still built. I don’t think they were used in the linking process and made my .apk bigger but it was still a waste of time to see them build after a clean. The only way I found to remove them from the build was to remove the same lines from the android.mk file in the extensions folder located in the engine root directory.
Am I missing something or is that the only way?