Skip to content

[Build error] When I attempt to build for Android, getting networkvariable error #778

@victorcfk

Description

@victorcfk

Describe the bug
When I attempt to make an Android Build, I receive a Unresolved inflated type argument for 'T' with declaring type 'Unity.Netcode.NetworkVariable`1' error. Full error below in context

To Reproduce
Steps to reproduce the behavior:

  1. Open the co-op sample project
  2. Change platform to Android
  3. Choose build and run
  4. Build fails
  5. See error

Expected behavior
Build succeeds, apk generated, sent to device

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS: Windows 10
  • Unity Version: 2021.3.8f1
  • BossRoom Version: commit at 6e1ee7a

Additional context

  • Unity for netcode is included in the project's package correctly
  • Unity Editor version of the project is working correctly
  • Detailed Unity build error, occurs 3 times each for the OnValueChangedDelegate. Double clicking does not bring me to the correct line in file
    Field 'Unity.Netcode.NetworkVariable1/OnValueChangedDelegate<T> Unity.Netcode.NetworkVariable1::OnValueChanged' from 'C:\Users\victorchua\Documents\GitHub\com.unity.multiplayer.samples.coop\Library\ScriptAssemblies\Unity.Netcode.Runtime.dll', exception Unresolved inflated type argument for 'T' with declaring type 'Unity.Netcode.NetworkVariable`1'
    UnityEditor.BuildPlayerWindow:BuildPlayerAndRun ()

Field 'T Unity.Netcode.NetworkVariable1::m_InternalValue' from 'C:\Users\victorchua\Documents\GitHub\com.unity.multiplayer.samples.coop\Library\ScriptAssemblies\Unity.Netcode.Runtime.dll', exception Unresolved inflated type argument for 'T' with declaring type 'Unity.Netcode.NetworkVariable1'
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun ()

Error building Player: 7 errors

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions