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.

gefragt vor 2 Jahren393 Aufrufe
1 Antwort
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
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen