Nat Thompson
Nat Thompson

Reputation: 49

Release Build of Xamarin Android App Fails, Debug Build Succeeds

I have a Xamarin app that uses AWS Cognito. It builds and runs fine when in Debug. When I switch to Release I receive the following error:

Default Constructor not found for Type Amazon.Util.Internal.PlatformServices.NetworkReachability.

Steps I have taken to resolve:

  1. Added INTERNET permission in AndroidManifest.
  2. Compared all build configuration screens for the project to insure Debug and Release match.
  3. Turned off optimize code option.

Upvotes: 1

Views: 606

Answers (1)

Nat Thompson
Nat Thompson

Reputation: 49

Changing the Linking options to "None" resolved the issue. It seems the linker was removing some necessary features.

Upvotes: 1

Related Questions