CAFE

Android

R.id. constant expression required

작성자운영자|작성시간15.10.12|조회수2,587 목록 댓글 0

In a regular Android project, constants in the resource R class are declared like this:

public static final int main=0x7f030004;

However, as of ADT 14, in a library project, they will be declared like this:
public static int main=0x7f030004;


ADT 14부터는 상수가 아니라서 switch문으로 쓰면 에러로 처리 되니, if else 사용하라고 하네요.


참고 사이트:

http://tools.android.com/tips/non-constant-fields

다음검색
현재 게시글 추가 기능 열기

댓글

댓글 리스트
맨위로

카페 검색

카페 검색어 입력폼