홈>
이 오류를 해결하는 방법 : 렌더링 문제 지원되지 않는 Path.op ()
레이아웃 새로 고침을 강제로 다시 시작하고 Android Studio를 업데이트하고 잠시 동안 바이러스 백신을 중지하려고했지만 문제가 여전히 있습니다.
놀랍게도 앱을 컴파일하고 실행할 수 있지만이 오류를 제거하는 방법은 무엇입니까?
나는 사용하고있다 :
- 안드로이드 스튜디오 3.5.3
- 안드로이드 SDK 도구 29.0.2
- Android SDK 플랫폼 Android 10.0 (Q) Android SDK 플랫폼 29
- 기본 OpenJDK 플랫폼 바이너리
오류를 재현하려면
- 빈 활동으로 새로운 안드로이드 프로젝트 만들기
레이아웃을 다음 레이아웃으로 바꾸십시오.
<?xml version="1.0" encoding="utf-8"?> <androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/parent_view" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity" android:background="@android:color/white"> <com.google.android.material.appbar.AppBarLayout android:id="@+id/appbar" android:layout_width="match_parent" android:layout_height="wrap_content"> <include layout="@layout/toolbar" /> </com.google.android.material.appbar.AppBarLayout> <androidx.core.widget.NestedScrollView android:id="@+id/nested_scroll_view" android:layout_width="match_parent" android:layout_height="match_parent" android:clipToPadding="false" android:scrollbars="none" android:scrollingCache="true" app:layout_behavior="@string/appbar_scrolling_view_behavior"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <androidx.cardview.widget.CardView android:layout_width="match_parent" android:layout_height="wrap_content" app:cardCornerRadius="0dp" app:cardElevation="2dp"> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <androidx.viewpager.widget.ViewPager android:id="@+id/pager" android:layout_width="match_parent" android:layout_height="250dp" android:layout_alignParentLeft="true" android:layout_alignParentStart="true" android:layout_alignParentTop="true" android:background="@android:color/darker_gray" /> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" android:orientation="vertical" android:paddingBottom="16dp" android:paddingLeft="12dp" android:paddingRight="12dp" android:paddingTop="14dp"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <TextView android:id="@+id/title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Title is going here" android:textAppearance="@style/TextAppearance.AppCompat.Medium" android:textColor="@android:color/white" /> <TextView android:id="@+id/brief" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text=" Location" android:textAppearance="@style/TextAppearance.AppCompat.Small" /> </LinearLayout> <LinearLayout android:id="@+id/layout_dots" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_alignParentEnd="true" android:layout_alignParentRight="true" android:layout_gravity="end" android:gravity="center" android:orientation="horizontal" /> </RelativeLayout> </RelativeLayout> </androidx.cardview.widget.CardView> <View android:layout_width="0dp" android:layout_height="16dp" /> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="16dp" android:orientation="vertical"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Description" android:textAppearance="@style/TextAppearance.AppCompat.Large" android:textColor="@android:color/darker_gray" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="6dp" android:lineSpacingExtra="4dp" android:text="very_long_lorem_ipsum very_long_lorem_ipsum very_long_lorem_ipsum very_long_lorem_ipsum very_long_lorem_ipsum very_long_lorem_ipsum very_long_lorem_ipsum very_long_lorem_ipsum very_long_lorem_ipsum very_long_lorem_ipsum very_long_lorem_ipsum very_long_lorem_ipsum very_long_lorem_ipsum very_long_lorem_ipsum very_long_lorem_ipsum very_long_lorem_ipsum very_long_lorem_ipsum very_long_lorem_ipsum very_long_lorem_ipsum " android:textAppearance="@style/TextAppearance.AppCompat.Subhead" android:textColor="@android:color/darker_gray"/> </LinearLayout> <View android:layout_width="0dp" android:layout_height="8dp" /> </LinearLayout> </androidx.core.widget.NestedScrollView>
-
답변 # 1
-
답변 # 2
Gradle Build의 머티리얼 컴포넌트 구현을 대체하여 문제를 해결했습니다 (앱 수준).
com.google.android.material:material:1.2.0-alpha05
에
com.google.android.material:material:1.2.0-alpha02
-
답변 # 3
나는 같은 문제에 직면했다. 응용 프로그램을 실행할 때 문제가 개선되었습니다. 프로젝트를 지우고 다시 빌드하면 문제가 개선 될 것이라고 생각합니다.
-
답변 # 4
나는 어제 같은 문제에 부딪쳤다. 광산은
com.google.android.material.appbar.AppBarLayout
구성 요소. 왜 그런지 정확히 모르겠지만
android:background="..."
그것을 해결합니다. -
답변 # 5
칩을 사용하는 동안 같은 문제가 발생했지만 레이아웃 편집기에서 볼 수 없습니다. 변경하여 해결
implementation 'com.google.android.material:material:1.2.0-alpha03'
에
implementation 'com.google.android.material:material:1.2.0-alpha02'
관련 자료
- arrays - 어려운 데이터 구조 문제를 해결하는 데 도움이 필요합니다
- python - keras에서`typeerror - 'tensor'객체가 항목 할당을 지원하지 않는 문제를 해결하는 방법
- python 3.x - Conda scrapy 설치 문제를 해결하는 방법?
- mysql - 8 여왕의 문제를 해결하기 위해 SQL 쿼리를 작성하는 방법은 무엇입니까?
- javascript - for-loop 대신 forEach 또는 map을 사용하여이 문제를 해결하는 방법이 있습니까?
- javascript - React Suspense가 해결하려는 문제는 무엇입니까?
- case study - sql 질문 - 왜 문제를 해결할 수 없습니까?
- java - setOnClickListener에 관한 문제를 어떻게 해결할 수 있습니까?
- c++ - 이 문제를 어떻게 해결할 수 있습니까? 텍스트 파일에서 줄을 내 보내야합니까?
- c - 이 할당 문제 (코어 덤프)를 어떻게 해결할 수 있습니까?
- ode - Mathematica에서이 NDSolve 문제를 해결하는 방법
- Flutter에서 Listview를 업데이트하고 StateFull 위젯 관련 문제를 해결하려면 어떻게해야합니까?
- javascript - 노드 JS에서 새로 고침 문제를 해결하는 방법
- python - CVXPY로 8 명의 여왕 문제를 해결하는 방법?
- numpy - 파이썬에서 두 개의 숨겨진 뉴런으로 XOR 문제를 해결할 수 없습니다
- python - 여기서 영구 ID가 사용되는 산세 문제는 무엇입니까?
- vb.net - 어떻게 해결할 수 있습니까 - visual basic 코딩에서 스레드 간 액세스 문제?
- 상태 및 피킹으로이 논리 문제를 해결하는 방법은 무엇입니까?
- python - 동적 프로그래밍으로이 문제를 어떻게 해결할 수 있습니까?
- java - 테이블 프로그램에 문제가 있습니다 그것을 해결하는 방법을 말해 줄 수 있습니까?
나는 같은 문제에 직면했다. 그 이유는 새로운 버전의 재료 구성 요소가이 버그와 함께 제공되기 때문입니다. 그래서 Gradle 빌드 스크립트의 버전을 지원하는 버전으로 바꾸려고했습니다.
Path.op()
.따라서 Gradle 빌드 스크립트의 종속성을 다음과 같이 바꾸십시오.