I got the answer myself. I Used below code in place of Android.App.Application...
"var path = Xamarin.Essentials.FileSystem.AppDataDirectory;"
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
I am using Xamarin.forms and none of the android class members are available post update yesterday.
My App was using Android.App.Application.Context.GetExternalDirectoryFile("").AbsolutePath. Now I am getting an error in vs stating "Android" doesn't contain a definition for "App" . Even Android.OS or .Content is throwing the same error.
Could someone please help resolving the issue. Target version was Androidv11.0 and even by changing it to 10.0, I am seeing the error.
Regards,
Mahesh B
I got the answer myself. I Used below code in place of Android.App.Application...
"var path = Xamarin.Essentials.FileSystem.AppDataDirectory;"