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.

demandé il y a 2 ans393 vues
1 réponse
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
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions