-
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
Unable to find OverrideUnityActivity #219
Comments
I've just completely re-written my Unity project in Unity version 2019.4.11 instead of 2020.1.6 and I'm no longer getting this crash. The docs don't specify a Unity version - is 2020 supported? I suspect that the crash only happens in Unity 2020, however because I've literally had to create everything again (materials, shaders, game objects, scripts etc), it's possible that some other change I have accidentally made has fixed it. |
@juicycleff I chased this down this weekend as a part of migrating to the new Widget (thank you for all the improvements!) The short version of the story is Unity will pull any *.java file into the Android build regardless of class name or directory. This caused the OverrideUnityActivity file – which appears to be a placeholder – to get put in src/main. Simply changing the file extension or removing that java file from the project will resolve this problem. I assume if you need to override the Unity Activity, then I suppose the manifest changes prescribed in the Read Me would fix it as well. |
@MugOfPaul thanks, I noticed it myself. Just like you stated, removing it will fix the issue. I am phasing out all iOS and Android activity scripts in the plugin from unity and managing them directly inside of the package |
This is my setup:
I've followed the exact steps in the setup instructions for flutter-unity-view-widget, but on application launch I immediately get the following crash. I think the important bit is when it says
Unable to find OverrideUnityActivity
. Any suggestions? I'm running this on a real device (Pixel 2)The text was updated successfully, but these errors were encountered: