- Just unset LD_LIBRARY_PATH in the dalvikvm wrapper. - Let the dalvikvm wrapper setup $ANDROID_DATA. - Avoid using a custom dalvikvm wrapper in dx.