aapt:错误:“com.example.photos11.mainactivity”与属性资源(attr)引用不兼容

csga3l58  于 2021-07-03  发布在  Java
关注(0)|答案(0)|浏览(302)

无法将我的主活动页链接为父页我做错了什么?被困了好几个小时。
这是我的名单

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.photos11">

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/main_screen_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/Theme.Photos11">
        <activity
            android:name=".PhotoView"
            android:label="@string/title_activity_photo_view"
            android:theme="@style/Theme.Photos11.NoActionBar">
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:resource="com.example.MainActivity" />
        </activity>
        <activity android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>

我的文件结构

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题