티스토리 뷰
profile_age.setText(profile.getAge());
getAge()가 int타입이고 profile_age가 텍스트뷰였는데 오류가 안나길래 그냥 실행했더니 앱이 죽음
로그캣봤더니 android.content.res.Resources$NotFoundException #0x2 이케 써있음
https://stackoverflow.com/questions/11189545/android-android-content-res-resourcesnotfoundexception-string-resource-id-0x
이거보고
profile_age.setText(profile.getAge());를
profile_age.setText(Integer.toString(profile.getAge())); 로 바꿨더니 잘됨
'Study > 공부' 카테고리의 다른 글
[JSTL] <c:out value="session.getAttribute('id')"/> 출력 안될 때 (0) | 2018.12.20 |
---|---|
mac에서 docker 사용해서 oracle 돌리기 (0) | 2018.12.18 |
제30회 SQLD 개발자 자격시험 합격 후기 (0) | 2018.10.02 |
android.widget.LinearLayout cannot be cast to android.widget.TextView (0) | 2017.11.23 |
android Manifest.permission.CAMERA 'Cannot resolve symbol' (1) | 2017.11.10 |
댓글