SampleLoginActivity를 돌려보고 있는데요

로그인 버튼을 누르고 동의 버튼을 누르면 아래와 같은 에러메시지가 뜨면서

다시 로그인 화면으로 돌아옵니다.

12-15 17:44:52.951: D/kakao-android-sdk(17723): GetterAccessToken: APIErrorResult{requestURL=‘https://kauth.kakao.com/oauth/token?grant_type=authorization_code&code=2rjjiOVUFQxyWHMTaE-Sh-PZZCkpfZqUSAby4ERe5WVnQ4um8tKIe8RSjhObPMFnqUDSgqwQQjQAAAFKTR8gSA&redirect_uri=kakao547e0a2067805fbe2c156febb4042ead%3A%2F%2Foauth&client_id=547e0a2067805fbe2c156febb4042ead&android_key_hash=ry%2B5jIIi1E2n9sOLzzHNeaRdfo4%3D’, errorCode=-777, errorMessage=‘http status = Unauthorized msg = {“error”:“misconfigured”,“error_description”:“invalid android_key_hash or ios_bundle_id or web_site_url”}’}

12-15 17:44:52.952: D/kakao-android-sdk(17723): ex = , ex=AUTHORIZATION_FAILED : APIErrorResult{requestURL=‘https://kauth.kakao.com/oauth/token?grant_type=authorization_code&code=2rjjiOVUFQxyWHMTaE-Sh-PZZCkpfZqUSAby4ERe5WVnQ4um8tKIe8RSjhObPMFnqUDSgqwQQjQAAAFKTR8gSA&redirect_uri=kakao547e0a2067805fbe2c156febb4042ead%3A%2F%2Foauth&client_id=547e0a2067805fbe2c156febb4042ead&android_key_hash=ry%2B5jIIi1E2n9sOLzzHNeaRdfo4%3D’, errorCode=-777, errorMessage=‘http status = Unauthorized msg = {“error”:“misconfigured”,“error_description”:“invalid android_key_hash or ios_bundle_id or web_site_url”}’}, request_type = null

12-15 17:44:52.963: I/Close(17723): AUTHORIZATION_FAILED : APIErrorResult{requestURL=‘https://kauth.kakao.com/oauth/token?grant_type=authorization_code&code=2rjjiOVUFQxyWHMTaE-Sh-PZZCkpfZqUSAby4ERe5WVnQ4um8tKIe8RSjhObPMFnqUDSgqwQQjQAAAFKTR8gSA&redirect_uri=kakao547e0a2067805fbe2c156febb4042ead%3A%2F%2Foauth&client_id=547e0a2067805fbe2c156febb4042ead&android_key_hash=ry%2B5jIIi1E2n9sOLzzHNeaRdfo4%3D’, errorCode=-777, errorMessage=‘http status = Unauthorized msg = {“error”:“misconfigured”,“error_description”:“invalid android_key_hash or ios_bundle_id or web_site_url”}’}

kakao_strings.xml에 앱생성해서 나온 네이티브 앱키를 등록해줬습니다.

@anon73457470

위의 에러는 키해시 등록이 되지 않아서 발생합니다.

https://developers.kakao.com/docs/android#시작하기-앱-생성 2번에 설명되어 있는 키해시 등록 해주세요.