一般是so文件加载出了问题
添加SerialPort_h.sh
内容
#!/bin/shjavah -o SerialPort.h -jni -classpath ../src com.example.dlwx.SerialPort
再重新生成试试