Android Xamarin上的System.UnauthorizedAccessExceptio
//检查存在的目录 if (File.Exists(Android.OS.Environment.DirectoryDownloads + '/Jitters/FavouritesListAdded.txt') == false) { Directory.CreateDirectory(Android.OS.Environment.DirectoryDownloads + 'Jitters/FavouriteList/'); File.Create(Android.OS.Environment.DirectoryDownloads + '/Jitters/FavouritesListAdded.txt'); }
赞0
踩0