관리 메뉴

나만을 위한 블로그

[Android] 플레이 스토어 앱 등록 시 failed to decrypt safe contents entry: java.io.IOException: getSecretKey failed: Password is not ASCII 에러 해결 본문

Android

[Android] 플레이 스토어 앱 등록 시 failed to decrypt safe contents entry: java.io.IOException: getSecretKey failed: Password is not ASCII 에러 해결

참깨빵위에참깨빵 2021. 9. 28. 01:01
728x90
반응형

플레이 스토어에 앱을 등록하려고 안드로이드 스튜디오에서 aab 파일을 만드는데 생성 시점에서 갑자기 이런 에러가 났다.

이 에러가 나는 이유는 별 거 아니었다.

 

 

에러가 발생한 정확한 순간은 저 두 곳에 각각 비밀번호를 입력한 다음 Remember Passwords를 입력하고 한번 실행한 다음, 비밀번호 저장했으니 알아서 저장됐겠거니 하고 수정한 다음 다시 생성했을 때 발생했었다.

내 경우 File > Invalidate Caches / Restart를 누르고 다시 입력하니 성공했다.

 

좀 더 찾아보니 저 순간에 윗부분, 밑부분에 입력한 패스워드가 달라서 제목의 에러가 발생한 것이었다. 아래 링크에서 좀 더 자세히 설명한다.

https://stackoverflow.com/questions/66144093/failed-to-decrypt-safe-contents-entry-java-io-ioexception-getsecretkey-failed

 

failed to decrypt safe contents entry: java.io.IOException: getSecretKey failed: Password is not ASCII

This happens in Android Studio Beta. Used to work in the other builds as I recall. Now, I either have to generate a new key every time I generate the apk or manually enter my password due to this e...

stackoverflow.com

안드로이드 스튜디오는 비밀번호를 생성할 때 생성되는 아스키를 사용하려고 하지만 시스템 언어, 날짜, 시간에 따라 비밀번호를 다시 생성하려고 하므로 일부 문자가 다를 수 있다. 따라서 특별한 경우에는 키보드로 암호를 입력하는 게 좋다. Key store password, Key password 각 부분에서 다른 암호를 만들며, 어떤 경우엔 올바르게 작동하지만 완전히 문제를 방지하기 위해 재입력하는 게 좋다.

 

반응형
Comments