그래오늘은이거야

[안드로이드 오류] android error: cannot find symbol class 본문

세상 개발/Android

[안드로이드 오류] android error: cannot find symbol class

jinhongstar 2019. 4. 5. 10:57
728x90
반응형



Class 가 꼬이고 import가 안된다는 에러와 함께 오류가 납니다.


android error: cannot find symbol class


이 에러는 보통 bundle.gradle  에서 설정이 잘못되거나 link 가 안맞으면 발생하는 오류 입니다.


이 에러로 3시간 버림 

저는 헷갈린게 


dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
}

이 부분이 디버그모드에서 워닝을 발생시켜


implementation fileTree(include: ['*.jar'], dir: 'libs')

이런식으로 변경했는데

프로젝트별 안드로이드 bundle.gradle 환경셋팅안하고 implementation을 썼다가...


오류가 발생했습니다.


android error: cannot find symbol class xxxx.xxx.xx ^ 오류 발생..


참고로 이 에러는 소스코드 상 compile은 문제 없이 잘되니...


android system 소스코드 작성중에 발생되는 에러입니다. 

결론은 내가 직접 짠 소스에서 문제가 발생한 것이다.


기본적인 문법을 잘못 짠거다 방금 수정한 곳이 어디가  잘 확인해보면 된다




반응형
Comments