Error on Android build - Unknown CPU architecture

Hello all - I'm really hoping someone can help out. I am running PUN2 and PhotonVoice (as well as chat). We are building with Unity V 2019.4.0f1. Not the latest, but only a couple of months old. Preferences/external tools Android check boxes are all set. Build settings (android) are run device (All compatible), dev build and script debug.

We are getting the following error:
Exception: Unknown CPU architecture for library D:/.../Assets/Photon/PhotonVoice/PhotonVoiceLibs/iOS/libyuv.a
UnityEditor.Android.PostProcessor.Tasks.NativePlugins.ProcessPlugin (UnityEditor.Android.PostProcessor.PostProcessorContext context, System.String pluginPath, System.String pluginTargetCPU) (at <3167064085404657b0d6c498207da025>:0)
UnityEditor.Android.PostProcessor.Tasks.NativePlugins.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <3167064085404657b0d6c498207da025>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <3167064085404657b0d6c498207da025>:0)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <3167064085404657b0d6c498207da025>:0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <3167064085404657b0d6c498207da025>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <af78ad00a40d4f61b82afc6cafb0a416>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

If anyone has any idea what to do, please help. I have searched the web and can't really find anything point on, especially in the last year. Thank you ahead of time for helping.

Comments

  • Hi @RayF,

    Thank you for choosing Photon!

    Please remove "Assets/Photon/PhotonVoice/PhotonVoiceLibs/iOS/libyuv.a" it was added to one older Photon Voice package version by mistake.
    Also preferably update to the latest version.
  • FYI, I got it to build without errors by deleting the whole folder Assets/Photon/PhotonVoice/PhotonVoiceLibs/iOS/ and then building it.
Sign In or Register to comment.