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.

已提問 2 年前檢視次數 393 次
1 個回答
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
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南