Home > Net >  WARN: Unable to load JNA library (OS: Mac OS X 12.2) warning when running flutter app on release mod
WARN: Unable to load JNA library (OS: Mac OS X 12.2) warning when running flutter app on release mod

Time:02-10

I have build a simple tic-tac-toe app on flutter. It works on debug mode without any problem. But when I run it on release mode it gives me error:

WARN: Unable to load JNA library (OS: Mac OS X 12.2) java.lang.UnsatisfiedLinkError: /Users/rza/Library/Caches/JNA/temp/jna10193542212619812140.tmp: dlopen(/Users/rza/Library/Caches/JNA/temp/jna10193542212619812140.tmp, 0x0001): tried: '/Users/rza/Library/Caches/JNA/temp/jna10193542212619812140.tmp' (fat file, but missing compatible architecture (have 'i386,x86_64', need 'arm64e')), '/usr/lib/jna10193542212619812140.tmp' (no such file)

I am assuming it is about CPU architecture. How can I fix this?

Note: I run the app on release mode in a virtual android machine.

CodePudding user response:

  •  Tags:  
  • Related