"DrawerLayout cannot be resolved to a type"
분명히 Android 라이브러리인데 import 실패하거나 syntax error 가 발생하는 경우가 있습니다.
이때에는 다음과 같이 하면 에러를 잡을 수 있습니다.
1. project 에서 오른쪽 버튼을 누릅니다.
2. popup 에서 "android tools"를 선택합니다.
3. "Add Support Library " 를 선택합니다.
그러면 android sdk 라이센스 동의 를 하면 라이브러리를 새로 받고 에러가 사라지는것을 볼 수 있습니다.
'Programming > Android' 카테고리의 다른 글
[android] All versions of the libraries must be the same at this time (0) | 2015.09.10 |
---|---|
[android] volley framework build with ant (0) | 2015.09.10 |
[Android] android.database.cursorindexoutofboundsexception error? (0) | 2015.06.22 |
[Android] Contact_id 와 raw_contact_id 간의 차이 (0) | 2015.06.20 |
[Android] db 에서 중복 row 열을 제거한 총 row 개수 얻기 (0) | 2015.06.18 |