Hello everyone. This is my first time posting in this forum, so apologies for any mistakes. I’ve been trying to resolve this issue on my own for some time, but I haven’t found any solutions at all and have basically arrived at a dead end. So I would appreciate any assistance.
The basic gist of it is that I am trying to make an Android 14 build of my project, but for some reason I do not understand, it is giving me an error that makes the project not fully playable. I am able to build for Windows and for earlier versions of Android (like Android 13, for example) without any problems. The error message doesn’t pop up, and the devices work as intended. However, it is just for Android 14 builds specifically that I just cannot get it to work.
Here is the error message I keep getting. Sometimes the specific error is different, but they generally lead to the same place. I keep getting Null Reference Exceptions that lead back to Microsoft.CSharp, which just doesn’t make sense to me.
--- App Info ---
App name: Endarth-LWRP
Bundle identifier: com.DefaultCompany.EndarthLWRP
App version: 1.0 (1)
Unity version: 2022.3.44f1
--- Device Info ---
Device name: Galaxy Note20 5G
Device model: samsung SM-N981B
Operation system: Android OS 13 / API-33 (TP1A.220624.014/N981BXXSDHXH1)
System language: Spanish
Device orientation: FaceUp
Connectivity: Local (LAN/Wifi)
--- CPU Info ---
CPU type: ARM64 FP ASIMD AES (8 core(s))
CPU speed: 2730 MHz
System memory size: 7443 MB
Allocated memory: 337,55 MB
Reserved memory: 516,36 MB
Mono used memory: 70,38 MB
--- GPU Info ---
GPU: Mali-G77
Graphic memory size: 2048 MB
Screen size: 1920x1080@60Hz
Screen dpi: 450
[01:37:39.77] NullReferenceException: Object reference not set to an instance of an object.
Microsoft.CSharp.RuntimeBinder.Semantics.ExpressionTreeRewriter.VisitBoundLambda (Microsoft.CSharp.RuntimeBinder.Semantics.ExprBoundLambda anonmeth) (at <00000000000000000000000000000000>:0)
Microsoft.CSharp.RuntimeBinder.Semantics.ExpressionTreeRewriter.Rewrite (Microsoft.CSharp.RuntimeBinder.Semantics.ExprBoundLambda expr) (at <00000000000000000000000000000000>:0)
Microsoft.CSharp.RuntimeBinder.RuntimeBinder.CreateExpressionTreeFromResult (System.Linq.Expressions.Expression[] parameters, Microsoft.CSharp.RuntimeBinder.Semantics.Scope pScope, Microsoft.CSharp.RuntimeBinder.Semantics.Expr pResult) (at <00000000000000000000000000000000>:0)
Microsoft.CSharp.RuntimeBinder.RuntimeBinder.BindCore (Microsoft.CSharp.RuntimeBinder.ICSharpBinder payload, System.Linq.Expressions.Expression[] parameters, System.Dynamic.DynamicMetaObject[] args, System.Dynamic.DynamicMetaObject& deferredBinding) (at <00000000000000000000000000000000>:0)
Microsoft.CSharp.RuntimeBinder.RuntimeBinder.Bind (Microsoft.CSharp.RuntimeBinder.ICSharpBinder payload, System.Linq.Expressions.Expression[] parameters, System.Dynamic.DynamicMetaObject[] args, System.Dynamic.DynamicMetaObject& deferredBinding) (at <00000000000000000000000000000000>:0)
Microsoft.CSharp.RuntimeBinder.BinderHelper.Bind (Microsoft.CSharp.RuntimeBinder.ICSharpBinder action, Microsoft.CSharp.RuntimeBinder.RuntimeBinder binder, System.Dynamic.DynamicMetaObject[] args, System.Collections.Generic.IEnumerable`1[T] arginfos, System.Dynamic.DynamicMetaObject onBindingError) (at <00000000000000000000000000000000>:0)
Microsoft.CSharp.RuntimeBinder.CSharpBinaryOperationBinder.FallbackBinaryOperation (System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject arg, System.Dynamic.DynamicMetaObject errorSuggestion) (at <00000000000000000000000000000000>:0)
System.Dynamic.BinaryOperationBinder.FallbackBinaryOperation (System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject arg) (at <00000000000000000000000000000000>:0)
System.Dynamic.DynamicMetaObject.BindBinaryOperation (System.Dynamic.BinaryOperationBinder binder, System.Dynamic.DynamicMetaObject arg) (at <00000000000000000000000000000000>:0)
System.Dynamic.BinaryOperationBinder.Bind (System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject[] args) (at <00000000000000000000000000000000>:0)
System.Dynamic.DynamicMetaObjectBinder.Bind (System.Object[] args, System.Collections.ObjectModel.ReadOnlyCollection`1[T] parameters, System.Linq.Expressions.LabelTarget returnLabel) (at <00000000000000000000000000000000>:0)
System.Runtime.CompilerServices.CallSiteBinder.BindCore[T] (System.Runtime.CompilerServices.CallSite`1[T] site, System.Object[] args) (at <00000000000000000000000000000000>:0)
System.Runtime.CompilerServices.CallSiteOps.Bind[T] (System.Runtime.CompilerServices.CallSiteBinder binder, System.Runtime.CompilerServices.CallSite`1[T] site, System.Object[] args) (at <00000000000000000000000000000000>:0)
System.Reflection.RuntimeMethodInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Exception& exc) (at <00000000000000000000000000000000>:0)
System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <00000000000000000000000000000000>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <00000000000000000000000000000000>:0)
System.Linq.Expressions.Interpreter.MethodInfoCallInstruction.Run (System.Linq.Expressions.Interpreter.InterpretedFrame frame) (at <00000000000000000000000000000000>:0)
System.Linq.Expressions.Interpreter.Interpreter.Run (System.Linq.Expressions.Interpreter.InterpretedFrame frame) (at <00000000000000000000000000000000>:0)
System.Linq.Expressions.Interpreter.LightLambda.Run3[T0,T1,T2,TRet] (T0 arg0, T1 arg1, T2 arg2) (at <00000000000000000000000000000000>:0)
PreGameplaySelection.<SelectMapID>b__113_0 () (at <00000000000000000000000000000000>:0)
NFCReader.CardOnField (System.Object data) (at <00000000000000000000000000000000>:0)
UILerpPos..ctor () (at <00000000000000000000000000000000>:0)
UnityEngine.Events.InvokableCall`1[T1].Invoke (T1 args0) (at <00000000000000000000000000000000>:0)
UnityEngine.Events.UnityEvent`1[T0].Invoke (T0 arg0) (at <00000000000000000000000000000000>:0)
SerialPortUtility.SerialPortUtilityPro.UpdateOnStreaming (System.Boolean binaryMode) (at <00000000000000000000000000000000>:0)
SerialPortUtility.SerialPortUtilityPro.ReadUpdate () (at <00000000000000000000000000000000>:0)
SerialPortUtility.SerialPortUtilityPro.Update () (at <00000000000000000000000000000000>:0)
--- End of stack trace from previous location where exception was thrown ---
System.Linq.Expressions.Interpreter.ExceptionHelpers.UnwrapAndRethrow (System.Reflection.TargetInvocationException exception) (at <00000000000000000000000000000000>:0)
System.Linq.Expressions.Interpreter.MethodInfoCallInstruction.Run (System.Linq.Expressions.Interpreter.InterpretedFrame frame) (at <00000000000000000000000000000000>:0)
System.Linq.Expressions.Interpreter.Interpreter.Run (System.Linq.Expressions.Interpreter.InterpretedFrame frame) (at <00000000000000000000000000000000>:0)
System.Linq.Expressions.Interpreter.LightLambda.Run3[T0,T1,T2,TRet] (T0 arg0, T1 arg1, T2 arg2) (at <00000000000000000000000000000000>:0)
PreGameplaySelection.<SelectMapID>b__113_0 () (at <00000000000000000000000000000000>:0)
NFCReader.CardOnField (System.Object data) (at <00000000000000000000000000000000>:0)
UILerpPos..ctor () (at <00000000000000000000000000000000>:0)
UnityEngine.Events.InvokableCall`1[T1].Invoke (T1 args0) (at <00000000000000000000000000000000>:0)
UnityEngine.Events.UnityEvent`1[T0].Invoke (T0 arg0) (at <00000000000000000000000000000000>:0)
SerialPortUtility.SerialPortUtilityPro.UpdateOnStreaming (System.Boolean binaryMode) (at <00000000000000000000000000000000>:0)
SerialPortUtility.SerialPortUtilityPro.ReadUpdate () (at <00000000000000000000000000000000>:0)
SerialPortUtility.SerialPortUtilityPro.Update () (at <00000000000000000000000000000000>:0)