-
Notifications
You must be signed in to change notification settings - Fork 75
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
Build failed for Android, Unity 2023.2.15f1, library version 1.0.10 #123
Comments
I am having the same problem with Unity 6 |
Could you please try this? Here's the link: https://github.com/byplay-io/react-native-unity.git |
hi has anyone been able to fix the above issue? |
hi please can you explain more on how to apply this solution? |
hi did you find a solution? I'm having this same issue |
hi did you find a solution? |
Sadly not yet. I progressed with my project in Unity 2022 for now. |
@azesmway hi guys please help with this, thanks |
Did this solve the issue for you? We're seeing the same error using 2023. |
So is it working for you on Unity 2022? |
Yes, because the problem is caused by a change made in Unity 2023 (and onwards) |
Same problem with Unity 6000.0.23f1 |
I was only able to work with Unity 2022 |
Anyone get solution for above? Unity 2022 working fine. @azesmway I saw you made changes in UPlayer.java. To get new unity 2023 class UnityPlayerForActivityOrService. That is fine. But we are getting this error now...
I think something code implementation need to change in method 'requestFocusPlayer' and 'requestFrame' of UPlayer.java. Anybody get solution of above please tell here. Thanks. |
Yes, UnityPlayer no longer extends FrameLayout in newer versions, causing this compile error because of incompatible types. react-native-unity/android/src/main/java/com/azesmwayreactnativeunity/UPlayer.java Line 100 in 86f89a6
For a quick fix, just modify node_modules (temporary test solution) <project>/node_modules/@azesmway/react-native-unity/android/src/main/java/com/azesmwayreactnativeunity/UPlayer.java:100 to let it return null (return null; ).
To fix this issue and make it work for both old and new UnityPlayer class, change
|
|
@dhruvaura but it's not a good fix, whenever well run npm i it will again reset to the older/existing code |
I think no need to run multiple time npm install after once you successfully integrate unity with react. Because after onwards you have to just replace exported android build and test. |
Hi,
Tried to build app for Android, Unity 2023.2.15f1, library version 1.0.10. Got error below:
The text was updated successfully, but these errors were encountered: