Current location - Plastic Surgery and Aesthetics Network - Clothing company - Android jni problem: The function of reading serial port file written by C was called, and there was an error when reading. Who can help me see what the problem is?
Android jni problem: The function of reading serial port file written by C was called, and there was an error when reading. Who can help me see what the problem is?
fn =(* env)-& gt; GetByteArrayElements(env,filename,0);

Change it to fn = (char *) (* env)-> GetByteArrayElements(env,filename,0);