question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot store/retrieve strings since release 3.1.1

See original GitHub issue

Version 3.1.1 is the last version I could successfully store/retrieve string-based settings. It crashes since I updated to 4.0.0.7 on iOS. Since then I had to downgrade to 3.1.1 when compiling for Android.

Bug Information

Version Number of Plugin: 4.0.0.10-beta Device Tested On: Samsung S7 Edge Simulator Tested On: Version of VS: 7.6.6 Version of Xamarin: Xamarin.Forms 3.2.83. Versions of other things you are using:

Steps to reproduce the Behavior

AppSettings.AddOrUpdateValue ("somekey", "some value");

Expected Behavior

var foo = AppSettings.GetValueOrDefault("somekey");
// This should contain "some value" but instead throws an exception

Actual Behavior

Throws exception System.TypeLoadException (Failure has occured while loading a type.)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
xperseguerscommented, Oct 2, 2018

Looks like somehow I had a version mixup for the plugin between the various parts of the application. Really don’t know how this could happen but everything works fine now and the incompatibilities I faced since version 3.1.1 might as well have been related to some compatibility packages for Android which were not up-to-date (it’s always a bit tricky since Xamarin.Forms does not systematically support the very latest available version of some compatibility library on Android and I ended up having quite some libraries which were announced as having a new version available but for which I did not try to upgrade anymore since I got used to trying to update for nuts and having to revert afterwards).

Sorry for disturbing and thanks for this very useful package.

0reactions
jamesmontemagnocommented, Sep 29, 2018

Maybe turn off linking for the assemblies… not sure what your link settings are set to. I need a sample reproduction please.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unity Hub Cannot Activate Free Personal License
1. Go to /Users/{macName}/Library/Application Support/UnityHub/logs · 2. Watch the 'info-log. · 3. Launch UnityHub and try 'Get a free personal ...
Read more >
"Unable to find main class" with Maven on spring-boot ...
RELEASE :repackage failed: Unable to find main class at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.
Read more >
Spring Boot 3.1.0 available now
Dependency upgrades​​ Spring Boot 3.1 moves to new versions of several Spring projects: Spring Data 2023.0. Spring GraphQL 1.2.
Read more >
I can't install TensorFlow-macos and TensorFlow-metal
After that, I looked into pypi.org and found out there are whl files for TensorFlow-macos and TensorFlow-metal. So, I tried to pip install...
Read more >
Spring Boot, Maven and Eclipse Errors ...
We want to help you in every way possible. We do not want you to get stuck because of a simple error. This...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found