或者按照现有的路径 去重新编译一个.so文件
package com.android.comport;
/**
* This class define Scanner native interface, will description Scanner native interface
*/
public class ComportNative {
static {
System.loadLibrary("comportjni_midtest");
}
/**
* Open Scanner device, call before scanning barcode/QRcode etc.
*
* @return (true,success; false, failed)
*/
public static native boolean comPortTest();
}