Update build.sh & catch loadLibrary error