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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则