Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- Eclipse
- android fragment
- Android Apk
- spring
- Android Apk 이름 변경
- release Apk
- tomcat
- java error
- Java
- fragment
- jQuery
- 안드로이드
- Android Apk 이름
- Program type already present
- JavaScript
- html
- Exception
- MySQL
- CSS사용법
- Firebase
- R프로그래밍
- Android
- css
- DataTable
- release unsigned
- Kotlin
- android error
- FLUTTER
- error
- apache gzip
Archives
- Today
- Total
selfstarter
An enum switch case label must be the unqualified name of an enumeration constant 본문
App/Android
An enum switch case label must be the unqualified name of an enumeration constant
selfstarter 2020. 8. 9. 14:42An enum switch case label must be the unqualified name of an enumeration constant
아래와 같이 enum값을 사용했는데
An enum switch case label must be the unqualified name of an enumeration constant 라는 에러가 났다. class명을 적지 말고 오로지 enum의 값만 적으면 된다
switch (fragmentType) {
case Common.FRAGMENT_TYPE.ITEM_LIST :
break;
case Common.FRAGMENT_TYPE.ITEM_DETAIL :
break;
case Common.FRAGMENT_TYPE.ITEM_TYPE_DETAIL :
break;
}
수정 후 에러가 없어졌다
switch (fragmentType) {
case ITEM_LIST :
break;
case ITEM_DETAIL :
break;
case ITEM_TYPE_DETAIL :
break;
}
'App > Android' 카테고리의 다른 글
Kotlin null처리(?=, !!., .?, ?:, as?,@) (0) | 2020.08.12 |
---|---|
Android getSupportFragmentManager in Fragment (0) | 2020.08.09 |
Lambda expressions are not supported at language level '7' (0) | 2020.08.07 |
Android Glide Library사용법 (0) | 2020.07.31 |
Android Camera2 (0) | 2020.07.25 |