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

PC build works fine, but Android doesn't #23

Open
Arex360 opened this issue Oct 17, 2023 · 6 comments
Open

PC build works fine, but Android doesn't #23

Arex360 opened this issue Oct 17, 2023 · 6 comments

Comments

@Arex360
Copy link

Arex360 commented Oct 17, 2023

Its working fine in PC but when I switch to android, it doens't work, after doing debugging using log cat, I got this issue
2023/10/14 03:20:44.566 21419 21441 Fatal libc Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 21441 (UnityMain), pid 21419 (ngleMultiplayer) 2023/10/14 03:20:44.838 22927 22927 Fatal DEBUG #13 pc 00387d4f /data/app/com.DefaultCompany.SingleMultiplayer-9CyCLx7zqtwpt5nFFx0rbg==/lib/arm/libunity.so
any idea?

also I get this issue as well
2023/10/17 20:55:51.424 25214 25234 Error Unity DllNotFoundException: Unable to load DLL 'webrtccsharpwrap'. Tried the load the following dynamic libraries: Unable to load dynamic library 'webrtccsharpwrap' because of 'Failed to open the requested dynamic library (0x06000000) dlerror() = dlopen failed: library "webrtccsharpwrap" not found

@adrenak
Copy link
Owner

adrenak commented Oct 17, 2023

Hi @Arex360

Do you get this error as soon as you switch to Android, or do you get it on build time, or at runtime on a phone?

The webrtc libraries that the sample uses are old and are not IL2CPP compatible. For testing purposes, try shifting to Mono backend. The webrtc layer is due for change which should fix the IL2cpp issues soon.

@Arex360
Copy link
Author

Arex360 commented Oct 18, 2023

Yes, after switching to Mono it works!
But, to release game on google play store, according to play store policy, the game must be arm64 compatible as well, in that case, lets wait for IL2CPP , hope we get it soon

@Akravator91
Copy link

Hi @Arex360 what kind of network library do you use. ?

I am still struggling to implement the Univoice with mirror.,
perhaps if you dont mind, can you share your Unity project.? :)

@Arex360
Copy link
Author

Arex360 commented Oct 20, 2023

@Akravator91 I am using AirSignaling, hosted the node js server on my cloud as well

I have noticed, android Mono build works but IL2CPP doesn't work

@adrenak
Copy link
Owner

adrenak commented Oct 20, 2023

Airsignal and Airpeer that uses it, which is turn is used to create the webrtc based network implementation likely needs to be dropped. The last of il2cpp support stems from there

Looks like com.unity.webrtc is a viable solution, it also has samples. I'll explore it this weekend.

Another user of univoice is helping out with mirror support, hopefully in a week or so both will be sorted out!

@adrenak
Copy link
Owner

adrenak commented Feb 1, 2024

Mirror support is here: https://github.com/adrenak/univoice-mirror-network

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

3 participants