파란색으로 인해이 문제가 발생했습니다. 이것은 Gradle을 콘솔 출력을 빌드입니다 : 내가 (대부분 SO) 온라인 어떤 게시물을 확인했습니다'app : process : DebugResources'작업 실행에 실패했습니다.
https://i.stack.imgur.com/YxvfR.png
. 지금까지는 buildToolsVersion (25.0.0보다 낮추지 않음)을 변경했으며, Clean Builds, Restarts, 모든 XML 파일에서 문제점을 검사했습니다.
아무 것도 해결되지 않았습니다. 또한 처음 몇 가지 오류에 대해서는 아무 것도 발견하지 못했습니다 ("Resourse matches matches ..."). 그 파일을 변경하려고 시도했지만 그 줄을 지우지는 않았지만 1) "프로젝트의 일부가 아닙니다"2) 어쨌든 변경하면 또 다른 오류가 있습니다.
이전 코드로 돌아가서 작동했는데 아무래도 모두 동일한 오류가 표시됩니다.
올바른 방향으로 나를 가리킬 수 있습니까? 무엇이 잘못되었는지 이해하고 어떻게 해결할 수 있습니까?
[UPDATE]
여기 res\layout\abc_list_menu_item_layout.xml
위한 코드이다 :
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.view.menu.ListMenuItemView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="?attr/listPreferredItemHeightSmall">
<!-- Icon will be inserted here. -->
<!-- The title and summary have some gap between them, and this 'group' should be centered vertically. -->
<RelativeLayout
android:layout_width="0dip"
android:layout_weight="1"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginLeft="?attr/listPreferredItemPaddingLeft"
android:layout_marginRight="?attr/listPreferredItemPaddingRight"
android:duplicateParentState="true">
<TextView
android:id="@+id/scale"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:textAppearance="?attr/textAppearanceListItemSmall"
android:singleLine="true"
android:duplicateParentState="true"
android:ellipsize="marquee"
android:fadingEdge="horizontal" />
<TextView
android:id="@+id/shortcut"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/title"
android:layout_alignParentLeft="true"
android:textAppearance="?android:attr/textAppearanceSmall"
android:singleLine="true"
android:duplicateParentState="true" />
</RelativeLayout>
<!-- Checkbox, and/or radio button will be inserted here. -->
는 그리고 res\layout\abc_popup_menu_item_layout.xml
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.view.menu.ListMenuItemView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="?attr/dropdownListPreferredItemHeight"
android:minWidth="196dip"
style="@style/RtlOverlay.Widget.AppCompat.PopupMenuItem">
<!-- Icon will be inserted here. -->
<!-- The title and summary have some gap between them, and this 'group' should be centered vertically. -->
<RelativeLayout
android:layout_width="0dip"
android:layout_weight="1"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:duplicateParentState="true"
style="@style/RtlOverlay.Widget.AppCompat.PopupMenuItem.InternalGroup">
<TextView
android:id="@+id/scale"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:textAppearance="?attr/textAppearanceLargePopupMenu"
android:singleLine="true"
android:duplicateParentState="true"
android:ellipsize="marquee"
android:fadingEdge="horizontal"
style="@style/RtlOverlay.Widget.AppCompat.PopupMenuItem.Text" />
<TextView
android:id="@+id/shortcut"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/title"
android:textAppearance="?attr/textAppearanceSmallPopupMenu"
android:singleLine="true"
android:duplicateParentState="true"
style="@style/RtlOverlay.Widget.AppCompat.PopupMenuItem.Text" />
</RelativeLayout>
<ImageView
android:id="@+id/submenuarrow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:scaleType="center"
android:visibility="gone" />
<!-- Checkbox, and/or radio button will be inserted here. -->
이 하나의
res\merged\debug\SAME_NAME
에 대한이 두 가지의 차이점은 URI가 등록되어 있지 않다는 라인 xmlns:android="http://schemas.android.com/apk/res/android"
의 오류 외에는 없습니다. 이 두 파일은 자동으로 생성되었으므로 어떤 일이 벌어지고 있는지 전혀 알지 못합니다. 마지막으로 "등록되지 않은 URI"오류를 검색했지만 제시된 모든 솔루션이 너무 다르기 때문에 여기에 적용되지 않는 프로젝트의 고유 한 것처럼 보입니다. Build Variant "release"를 사용하여 시도한 다음 다시 변경했지만 아무 일도 일어나지 않았습니다.
"res/layout/abc_list_menu_item_layout.xml"파일을 게시 할 수 있습니까? 또한, 그 파일의 버전이 두 개 이상입니까? (아마도 다른 "res/layout-?"디렉토리에 있습니까?) 레이아웃이 정의되지 않은 뷰 ID를 참조하고있는 것 같습니다. – AndroidGuy
@AndroidGuy 응답. 내가 이미 코드를 표시하고 내가 겪고있는 것을 조금 더 설명하는 질문을 편집했습니다. 빌드 변형 "릴리스"를 사용한 후 중복 된 것이 없습니다. 두 파일이 빌드 캐시에 있음을 확인했습니다. . 내가 무효화하고 그것을 다시 시작해야합니까? 건배! – ruiBarbs
자신에게 응답 무효화/다시 시작 캐시가 작동하지 않습니다. – ruiBarbs