-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to load 'libmain.so', the application will terminate. #125
Comments
Small update, I tried to build the flutter app and the native one to an apk and confronted the results, it looks like mainlib.so is really missing from the flutter one, but not from the native |
You need to link the libs manually for AR Core. Read the docs |
same error in here Can you help me please. |
@juicycleff i follow all the steps in the docs,but i have the same issue.Can you help us? |
I have the same problem |
same problem |
I am facing the same issue. Please help. |
@hardik-intellify @klepov @jamontes79 @LucasTejero @EhsanBrd Unity -> Player Settings -> Android tab -> Other Settings -> Target Architectures and ensure ARM64 option is checked. This solved it for me. |
this is not working for me |
The issue seems to be with the Emulator being running on an x86 architecture CPU, while actual android devices runs on ARM based architecture. That's why the .so file was unable to run on the emulator and crashes. Try running the same app, on a physical android device instead. However, of course as as a developer you would want to use the emulator for testing purpose. For that a bit of google took me to this page where you could use the latest Android 11 image that helps automatically convert ARM instructions to x86. But it didn't work out for me. So if anyone finds a solution for the same please reply. |
It doesnt work for mono builds. Works only for IL2CPP builds. |
@Auties00 do you have hyprface sdk? |
Hello,
I'm developing a camera app and I chose to use Unity 3D to develop AR Face Filters with the help of the HyprFace SDK. The Unity 3D Project is successfully compiled, but the mist interesting part is that the Unity3D native app for Android works perfectly, while the one using Flutter and your plugin crashes with following message:
The text was updated successfully, but these errors were encountered: