gamelift client NetworkReachability cunstructor missing in Unity build

0

I get the following exception during runtime on android:

MissingMethodException: Default constructor not found for type Amazon.Util.Internal.PlatformServices.NetworkReachability

The code below is executed:

var client = new AmazonGameLiftClient(
				"<accesskey>",
				"<secret>",
				new AmazonGameLiftConfig { UseAlternateUserAgentHeader = false, RegionEndpoint = RegionEndpoint.USEast1 }
				);

I didn't have any issues running the game client on windows and the server running on linux.

asked 2 years ago386 views
1 Answer
0

Hi @gabetoth, Have you taken a look at this guide which lists out special considerations for Unity support, when using the AWS SDK? https://docs.aws.amazon.com/sdk-for-net/v3/developer-guide/unity-special.html

Commonly, this seems to be an issue with not adding a link.xml file to the Assets folder, that lists all AWSSDK assemblies being used. Could you try this to see if it solves your problem?

AWS
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions