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

Crash When Using LunarConsole with Unity 6 and Android #223

Open
shinozaki-kohta-boi opened this issue Oct 21, 2024 · 2 comments
Open

Crash When Using LunarConsole with Unity 6 and Android #223

shinozaki-kohta-boi opened this issue Oct 21, 2024 · 2 comments

Comments

@shinozaki-kohta-boi
Copy link

shinozaki-kohta-boi commented Oct 21, 2024

Environment

  • Unity Version: 6000.0.23f1
  • Android SDK Version: 34

Error Details

2024/10/21 13:48:27.374 9765 9765 Error AndroidRuntime java.lang.VerifyError: Verifier rejected class spacemadness.com.lunarconsole.console.ManagedPlatform: android.view.View spacemadness.com.lunarconsole.console.ManagedPlatform.getTouchRecipientView() failed to verify: android.view.View spacemadness.com.lunarconsole.console.ManagedPlatform.getTouchRecipientView(): [0x4] returning 'Reference: com.unity3d.player.UnityPlayer', but expected from declaration 'Reference: android.view.View' (declaration of 'spacemadness.com.lunarconsole.console.ManagedPlatform' appears in /data/app/~~MeJBbJj_lRHbqGG4pNJZOQ==/jp.testapp.android-6ZT6cn_w9lY5sHAFt_0Sbg==/base.apk)

Additional Information

According to the Unity 6 upgrade guide, the name of UnityPlayer needs to be changed to UnityPlayerForActivityOrService. I hope LunarConsole can be made compatible with Unity 6.
https://docs.unity3d.com/Manual/UpgradeGuideUnity6.html#android-unityplayer:~:text=%E3%81%95%E3%82%8C%E3%81%BE%E3%81%99%E3%80%82-,Android%3A%20Java%20%E3%82%AF%E3%83%A9%E3%82%B9%20UnityPlayer%20%E3%81%AE%E5%90%8D%E5%89%8D%E3%82%92%20UnityPlayerForActivityOrService%20%E3%81%AB%E5%A4%89%E6%9B%B4%E3%81%99%E3%82%8B%E5%BF%85%E8%A6%81%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99,-Java%E3%82%AF%E3%83%A9%E3%82%B9%E3%81%AF

Thank you for providing this excellent application!

@playjoa
Copy link

playjoa commented Oct 24, 2024

I'm also having this same issue :(

@playjoa
Copy link

playjoa commented Oct 24, 2024

Fix provided by @dogramacigokhan fixed this issue for me, got no crash and lunar console working again :D

#218 (comment)

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