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.09k stars 504 forks source link

error while running basic unity sample on flutter_unity_widget #952

Open ritesh-keyss opened 1 month ago

ritesh-keyss commented 1 month ago

Describe the bug I am using unity sample project and inserting in flutter_unity_widget to run that on flutter app. After importing and building the project I am seeing multiple lines of error. Let me know if you are facing the same error.

To Reproduce I am using android sample for unity and just exporting it on my android studio.

Expected behavior To run my sample demo project of unity on flutter.

Screenshots Screenshot 2024-05-29 184006

Unity (please complete the following information):

timbotimbo commented 3 weeks ago

Which Unity version did you make an export with? This looks like you either did not make a valid unity export, or the classes in your unity export don't match the plugin.

Unity 2023 and newer aren't supported yet as they made major changes in the android classes that get exported. The current plugin can handle 2019.3.x to 2022.3.x on android.

I also see you are trying to use an x86 emulator. Please do all initial setup on a real phone, as android emulators aren't really supported and will cause you lots of issues.