I\'m running unit tests in Android Studio. I have a Java class that loads a native library with the following code
static { System.loadLibrary(\"myli
The only solution I found that works without hacks is to use JUnit through instrumentation testing (androidTest directory). My class can now be tested fine but with help of the android device or emulator.