23
レイアウトのレイアウト<layout>は、ベースレイアウトフォルダに宣言がありません[エラー]
Android Studio 3.2、API 28に移行した後、アプリのレイアウトで次のエラーが発生します。 レイアウト内のレイアウトには、基本レイアウトフォルダー内の宣言がありません。これにより、この修飾子と一致しない構成でリソースが照会されたときにクラッシュが発生する可能性があります このエラーが発生するレイアウトの1つは、次のとおりです。 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" android:background="@null" > <FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <ImageView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="top|center_horizontal" android:adjustViewBounds="true" android:contentDescription="@string/hello_world" android:src="@drawable/loading_top" /> <ImageView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="bottom|center_horizontal" android:adjustViewBounds="true" android:contentDescription="@string/hello_world" android:src="@drawable/loading_bottom" /> <ImageView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center" android:contentDescription="@string/hello_world" android:background="@color/white" android:layout_marginBottom="5dp" android:paddingTop="10dp" android:paddingBottom="10dp" android:src="@drawable/loading_logo" /> <ImageView android:id="@+id/loading" …