Cannot store/retrieve strings since release 3.1.1
See original GitHub issueVersion 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:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Maybe turn off linking for the assemblies… not sure what your link settings are set to. I need a sample reproduction please.