Replies: 1 comment
-
Just a couple things to check:
This is a Windows path and wont work on Android. I see you show a different path in the discussion text but make sure you actually have it in the code. Second, make sure you actually have permission to access the file system. Android has a fairly complicated permission system that requires fiddling with manifest files and then prompting for, or manually granting access. Some directories however do not require permission to access, but they are typically only accessible to the app itself and nothing else. https://developer.android.com/guide/topics/permissions/overview https://developer.android.com/reference/android/Manifest.permission |
Beta Was this translation helpful? Give feedback.
-
i have null reference issue in AvaloniaUI Android project in AppSettings.json File if i run the code in Desktop the code is running Properly and i get correct result if i run the same code in android device the application was crash and i debug the application some json file related function throwing null reference error.
private static readonly string appSettingsFilePath = "Configs\AppSettings.json";
if i use the path like this still same issue
i am using both this package in both Main and Android Project
microsoft.extensions.configuration
microsoft.extensions.configuration.json
Beta Was this translation helpful? Give feedback.
All reactions