今天打包出现这个错误:
03-19 14:00:07.815: I/Unity(16574): EntryPointNotFoundException: getifaddrs 03-19 14:00:07.815: I/Unity(16574): at (wrapper managed-to-native) System.Net.NetworkInformation.LinuxNetworkInterface:getifaddrs (intptr&) 03-19 14:00:07.815: I/Unity(16574): at System.Net.NetworkInformation.LinuxNetworkInterface.ImplGetAllNetworkInterfaces () [0x00000] in <filename unknown>:0 03-19 14:00:07.815: I/Unity(16574): at System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces () [0x00000] in <filename unknown>:0 03-19 14:00:07.815: I/Unity(16574): UnityEngine.GameObject:SendMessage(String, Object, SendMessageOptions) 03-19 14:00:07.815: I/Unity(16574): UICamera:Notify(GameObject, String, Object) 03-19 14:00:07.815: I/Unity(16574): UICamera:ProcessTouch(Boolean, Boolean) 03-19 14:00:07.815: I/Unity(16574): UICamera:ProcessTouches() 03-19 14:00:07.815: I/Unity(16574): UICamera:Update()
在网上搜索下:
Unfortunately this is a known bug in Mono for Android. The bug report is available here.
https://bugzilla.xamarin.com/show_bug.cgi?id=1969
是因为System.Net.NetworkInformation.GetAllNetworkInterfaces()在android上会报错导致的。
0 条评论。