I am developing an app on a JellyBean device and I love the new Instant run feature of Android studio. Using it on a JellyBean device, however, requires a non-multidexed app. I have managed to cut down the dex size by removing a few dependencies.
The problem is that I would really like to ommit log4j library, which is the one that takes me over the dex limit, but I need to use another library(gpxParser) which makes calls to log4j and crashes with this error during runtime.
Caused by: java.lang.NoClassDefFoundError: org.apache.log4j.Logger
I have tried some Proguard nowarns but to no avail. The app runs just fine without log4j included until I hit a call from the library that uses it. I have searched all over the internet but I can´t find any way to do this.