huzit
___을 입력해주세요
huzit
전체 방문자
  • 분류 전체보기 (137)
    • 안드로이드(Compose) (10)
      • UI (4)
      • 개념 (6)
    • 안드로이드 (50)
      • 기본개념 (6)
      • 응용 (4)
      • Debug (18)
      • Binding (3)
      • RecyclerView (5)
      • Firebase (6)
      • Retrofit (1)
      • Activity & Fragment (4)
    • 코틀린 (22)
    • 코딩테스트 (38)
      • 백준 (10)
      • 프로그래머스 (28)
    • 일상 (6)
    • CS 지식 (4)
    • 라즈베리파이 (7)

블로그 메뉴

  • 홈
  • 태그
  • 글쓰기
  • 관리

공지사항

인기 글

태그

  • docker
  • firebase
  • 라즈베리 파이
  • 프로그래머스
  • 브레빌 밤비노 플러스
  • Debug
  • jetpack
  • FCM
  • 공돌이파파
  • gts4mini
  • IFTTT
  • RecyclerView
  • 공돌카돈
  • Retrofit
  • Java
  • Kotlin
  • compose
  • Android
  • recyclerView ClickEvent
  • 코틀린

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
huzit

___을 입력해주세요

Caused by: java.lang.IllegalArgumentException: Char / is not a decimal digit
안드로이드/Debug

Caused by: java.lang.IllegalArgumentException: Char / is not a decimal digit

2023. 4. 10. 10:35
728x90

원인

StringBuilder에서 get한 값을 바로 digitToInt 했을 때 나온 에러입니다.

if(sb[1].digitToInt() == 9)

해결

String -> Int 로 String을 한 번 거쳐줬습니다.

if(sb[1].toString().toInt() == 9)
728x90
저작자표시 (새창열림)

'안드로이드 > Debug' 카테고리의 다른 글

RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{dcc7ca6 u0 com.***.***/.ble.BleService}  (0) 2023.04.13
--- Failed to create image decoder with message 'unimplemented'  (0) 2023.04.10
SDK location not found  (0) 2023.03.13
Waiting For Debgger 무한 대기  (0) 2023.03.08
Build was configured to prefer settings repositories over project repositories but repository 'flatDir' was added by build file 'app/build.gradle'  (0) 2023.03.07
    '안드로이드/Debug' 카테고리의 다른 글
    • RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{dcc7ca6 u0 com.***.***/.ble.BleService}
    • --- Failed to create image decoder with message 'unimplemented'
    • SDK location not found
    • Waiting For Debgger 무한 대기
    huzit
    huzit
    simple is best

    티스토리툴바