0
일부 파일을 검색하려고 할 때 Android에 UnauthorizedAccessException
이 있습니다. 이상한 일은 오늘 저녁에 몇 달 전부터 일했다는 것입니다.UnauthorizedAccessException on android
- 은 구글이 서비스 플레이 테스트 알파를 사용하려면 APK를 업로드 :
- 키 스토어를 추가하고 응용 프로그램을 서명 내 테스트 장치에 내 응용 프로그램의 마지막 인스턴스를 제거
- (서명 된 버전과 호환되지 않습니다)
유일한 일이 나는 시간의 지난 몇이 (내가 어떻게 변경되었을 수 있습니다 아무것도 볼 수없는 경우에도)했다
다음은 (아무 서명, 같은 문제로 시도) pp는 Unity 5.5.0f3으로 제작되었으며, 나는 접근하려고하는 경로를 빌드하기 위해 Application.persistentDataPath
을 사용합니다. StateMachine.Start에서
UnauthorizedAccessException: Access to the path "/storage/emulated/0/Android/data/com.<mycompany>.<myproductname>/files/Saves" is denied.
at System.IO.Directory.GetFileSystemEntries (System.String path, System.String searchPattern, FileAttributes mask, FileAttributes attrs) [0x00000] in <filename unknown>:0
at System.IO.Directory.GetFiles (System.String path, System.String searchPattern) [0x00000] in <filename unknown>:0
at System.IO.Directory.GetFiles (System.String path, System.String searchPattern, SearchOption searchOption) [0x00000] in <filename unknown>:0
at ProfileManager.ParseDirForProfiles (.DirName _dir, .FileExtension _ext) [0x00000] in <filename unknown>:0
at SaveManager.ParseDirForProfiles() [0x00000] in <filename unknown>:0
at myproductname.OnStart() [0x00000] in <filename unknown>:0
하고 여기
예외위한 호출 스택 인 관련 설정 :![Settings 1](https://i.stack.imgur.com/uU3RU.png)
![Settings 2](https://i.stack.imgur.com/TV3cz.png)
대단히 고맙습니다. 내 문제를 해결했습니다. 가능한 빨리 답변을 수락하겠습니다. –