selfstarter

Android Error NotFoundException String resource ID 본문

App/Android

Android Error NotFoundException String resource ID

selfstarter 2020. 5. 6. 14:56

Android Error NotFoundException String resource ID

Error

NotFoundException: String resource ID #0xdac

Cause

setText할 때 넣는 인자가 String이 아니다

Solution

modify Code holder.textView2.setText(itemListData.getMoney()); to
holder.textView2.setText(Integer.toString(itemListData.getMoney()));

'App > Android' 카테고리의 다른 글

android constraintlayout 속성 정리  (0) 2020.05.21
AnimatedVectorDrawable for Android  (0) 2020.05.17
Kotlin 사용법(Kotlin Summary with kotlin tutorial)  (0) 2020.04.04
Android adb command  (0) 2020.04.03
Android apk install  (0) 2020.04.01
Comments