마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

안드로이드 스튜디오 에러메세지 해석좀 부탁드려요

0 추천

안녕하세요.

저의 프로그래밍 수준은 완전 바닥입니다.

그래서 질문이 좀 어처구니없을 수 있더라고 이해 부탁드리겠습니다.

만들고싶은 앱이 있어서 공부중인데 에러가 9개나 떠서 몇시간을 검색해도 해결을 못하고 있습니다.

 

아래의 에러를 어떻게 해결해야 하는지 방향을 좀 잡아주시면 감사하겠습니다.

 

 

 

Error:error: 'Categories' is incompatible with attribute android:iconTint (attr) color.

 

Error:error: 'Ranking' is incompatible with attribute android:iconTint (attr) color.

 

Error:'Categories' is incompatible with attribute android:iconTint (attr) color.

 

Error:'Ranking' is incompatible with attribute android:iconTint (attr) color.

 

 

 

여기까지는 클릭을 하면 해당 xml 파일로 이동이 되는데 아래부분에서 <item 부분에 빨간줄이 생겨져 있습니다.

 

<item
    android:id="@+id/action_category"
    android:enabled="true"
    android:iconTint="Categories"
    android:icon="@drawable/ic_question_answer_black_24dp"
    app:showAsAction="ifRoom"/>

<item
    android:id="@+id/action_ranking"
    android:enabled="true"
    android:iconTint="Ranking"
    android:icon="@drawable/ic_star_black_24dp"
    app:showAsAction="ifRoom"/>

그리고 아래에 또 다른 에러들이 뜹니다.

 

 

 

Error:failed linking file resources.

 

Error:java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details

 

Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details

 

Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details

 

Error:Execution failed for task ':app:processDebugResources'.

 

> Failed to execute aapt

 

 

그리고 갑자기 xml 디자인 탭에 아무것도 안나오고 Design editor is unavailable until a successful build 이라는 메세지가 나옵니다..

 

 

 

그리고 자바파일인데 R이 빨갛게 나오는 이유를 모르겠습니다.

   public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {
myFragment = inflater.inflate(R.layout.fragment_category,container,false);

return myFragment;
익명사용자 님이 2017년 10월 30일 질문
메뉴얼 정독 하시고
 https://developer.android.com/guide/topics/resources/drawable-resource.html?hl=ko

xml 빌드가 안되서 R 을 찾을 수 없으니  빨갛게 나오는것 입니다.
Error:error: 'Categories' is incompatible with attribute android:iconTint (attr) color.
틴트값으로 컬러를 지정하세요. #00000000이라던지..

1개의 답변

0 추천

답변들이 전부 틀렸슴다..

java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details

그래들 버전이 3.0으로 업데이트되면서 발생한 문제네요 aapt1 > aapt2로 바뀌면서 발생한 이슈임다.

https://stackoverflow.com/questions/46988102/errorcom-android-tools-aapt2-aapt2exception-aapt2-error-check-logs-for-detail

익명사용자 님이 2018년 2월 12일 답변
아니그냥 해결 방법 알려주면 안되나요?? 저 사이트가봤자 이해도 안되는데...
ㅇㅈ 개 잘난척하는거로 밖에 안보임
좋은 링크 감사합니다-
위의 코더 둘의 대답에 키보드를 탁-! 하고 치고 갑니다. 저러고 자기는 개발자라고 하겠지?
...