Conversation
yangjiae12
approved these changes
Nov 25, 2025
Member
yangjiae12
left a comment
There was a problem hiding this comment.
트러블 슈팅에 작성해 주신 내용 확인했습니다! Room 컴파일러는 @query의 결과를 함수의 반환 타입으로 변환하려고 하는데 기존 코드인 SELECT *는 Row를 반환하는데, 함수는 Int를 요구하다 보니 타입 불일치가 발생한 것으로 보입니다.
이때 Room이 단일 값이 아닌 객체로 매칭하려고 하고 결과 칼럼들과 일치하는 생성자를 찾기 시작하고 Int 하나만 받는 생성자는 없으니 생성자 에러를 띄운 것 같네요. 에러 해결 하느라 수고하셨습니다~! 그나저나 현 PR에 AlbumDao가 없어 보이는데 push를 하지 않은 것일까욥
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 PR 제목
✅ 변경 사항
📷 영상 및 스크린샷
kim1@gmail.com으로 로그인 된 상태
kim@gmail.com으로 로그인 된 상태
🔗 알게 된 사항
📝 질문 사항