If anyone reading this has the same problem, this happened to me recently, and it was due to having the xml header written twice by mistake:
1 2 3 4 5 6 7 | <?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?> <!-- Remove this one --> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <solid android:color="@color/mug_blue"/> <corners android:radius="@dimen/featured_radius" /> </shape> | cs |
The error I was getting was completely unrelated to this file so it was a tough one to find. Just make sure all your new xml files don't have some kind of mistake like this (as it doesn't show up as an error). EDIT It seems like it shows up as an error now, make sure to check your error logs.
실수로 xml 태그 두번 적었을때 발생 가능
https://stackoverflow.com/questions/48549587/failed-linking-file-resource-i-am-getting-this-error-even-after-trying-all-po?rq=1
https://stackoverflow.com/questions/48549587/failed-linking-file-resource-i-am-getting-this-error-even-after-trying-all-po?rq=1
https://stackoverflow.com/questions/48549587/failed-linking-file-resource-i-am-getting-this-error-even-after-trying-all-po?rq=1
'android' 카테고리의 다른 글
[Android] Type parameter T Has Incompatible upper bounds ViewDataBinding 대처 (0) | 2019.01.29 |
---|---|
[Android] 테두리 양쪽 좌우만 설정하기 (1) | 2019.01.25 |
[Android] Design editor is unavailable until a successful build 에러 대처 (0) | 2019.01.25 |
[Android] gradient 를 사용해 하단에 그림자 효과 넣기 (0) | 2019.01.25 |
[Android] Android studio 3.x 이상 @android.support.annotation.Nullable 대응 (0) | 2019.01.21 |