当eclipse的项目移到Android studio 上时发现原来使用的JNI 打开串口是报红

private native static FileDescriptor open(String path, int baudrate,
      int flags);

public native void close();

解决办法:

1.File--->Settings--->Plugins,将Android NDK Support 后面的对勾去掉。

无法找到JNICannot resolve corresponding JNI function Java_com_keepassdroid_crypto native_AesCipherSPI_Up

 然后重启AS即可

相关文章:

  • 2021-12-11
  • 2021-06-30
  • 2021-11-08
  • 2021-06-26
  • 2021-05-30
  • 2021-11-13
  • 2021-04-06
  • 2021-06-05
猜你喜欢
  • 2021-10-14
  • 2021-09-19
  • 2021-04-08
  • 2021-05-11
  • 2021-10-04
相关资源
相似解决方案