juicycleff / flutter-unity-view-widget

Embeddable unity game engine view for Flutter. Advance demo here https://github.com/juicycleff/flutter-unity-arkit-demo
BSD 3-Clause "New" or "Revised" License
2.13k stars 518 forks source link

libmain.so not found #866

Open soma9017 opened 1 year ago

soma9017 commented 1 year ago

Describe the bug libmain.so is not found error is found while building debug apk, it works fine building in release apk

To Reproduce Steps to reproduce the behavior:

  1. Go to flutter and start building the apk using debug mode
  2. Click on run
  3. Scroll down to start debugging
  4. See error

Launching lib\main.dart on Android SDK built for x86 in debug mode... main.dart:1 √ Built build\app\outputs\flutter-apk\app-debug.apk. E/FlutterLoader( 4475): Flutter initialization failed. E/FlutterLoader( 4475): java.util.concurrent.ExecutionException: java.lang.UnsatisfiedLinkError: dlopen failed: library "libflutter.so" not found E/FlutterLoader( 4475): at java.util.concurrent.FutureTask.report(FutureTask.java:123) E/FlutterLoader( 4475): at java.util.concurrent.FutureTask.get(FutureTask.java:193)

timbotimbo commented 1 year ago

You are either targeting an emulator or somehow have the x86 target included in your build.

The unity export does not support x86 mode. Check the emulator section in the readme for more context.