相关疑难解决方法(0)

如何解决渲染问题 Path.op() 不支持?

如何解决此错误:不支持渲染问题 Path.op()

我尝试强制刷新布局,重新启动,更新Android Studio,停止杀毒一段时间,但问题仍然存在。

令人惊讶的是,我能够编译和运行该应用程序,但如何摆脱此错误?

我在用:

  • 安卓工作室 3.5.3
  • Android SDK 工具 29.0.2
  • Android SDK 平台 Android 10.0 (Q) Android SDK 平台 29
  • 默认 OpenJDK 平台二进制文件

重现错误:

  • 使用空活动创建新的 Android 项目
  • 用以下布局替换布局:

    <?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 …
    Run Code Online (Sandbox Code Playgroud)

layout android render android-studio

30
推荐指数
3
解决办法
2万
查看次数

标签 统计

android ×1

android-studio ×1

layout ×1

render ×1