Skip to content
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

error while running basic unity sample on flutter_unity_widget #952

Open
ritesh-keyss opened this issue May 29, 2024 · 1 comment
Open

Comments

@ritesh-keyss
Copy link

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):

  • OS: Android
@ritesh-keyss ritesh-keyss changed the title e: C:\Users\rites\AppData\Local\Pub\Cache\hosted\pub.dev\flutter_unity_widget-2022.2.1\android\src\main\kotlin\com\xraph\plugin\flutter_unity_widget\OverrideUnityActivity.kt: (7, 27): Unresolved reference: UnityPlayerActivity error while running basic unity sample on flutter_unity_widget May 29, 2024
@timbotimbo
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants