Java 错误:链接文件资源失败。AAPT错误

Java 错误:链接文件资源失败。AAPT错误,java,android,android-studio,Java,Android,Android Studio,我在主要活动中遇到此错误 错误:未找到属性“com.galaxy.android.anies:menu”。 消息{kind=ERROR,text=ERROR:attribute'com.galaxy.android.animates:menu'未找到,sources=[E:\animates\app\src\main\res\layout\activity\u main.xml:136],原始消息=,工具名=可选的(AAPT)} 我的项目被删除了,所以我用apk反编译器反编译apk文件,这是在我

我在主要活动中遇到此错误

错误:未找到属性“com.galaxy.android.anies:menu”。 消息{kind=ERROR,text=ERROR:attribute'com.galaxy.android.animates:menu'未找到,sources=[E:\animates\app\src\main\res\layout\activity\u main.xml:136],原始消息=,工具名=可选的(AAPT)}

我的项目被删除了,所以我用apk反编译器反编译apk文件,这是在我的手机现在我得到这个错误

<?xml version="1.0" encoding="utf-8"?>
   <android.support.v4.widget.DrawerLayout 
   xmlns:android="http://schemas.android.com/apk/res/android"
   xmlns:app="http://schemas.android.com/apk/res-auto"
   xmlns:tools="http://schemas.android.com/tools"
   android:id="@+id/my_drawer"
   android:layout_width="match_parent"
   android:layout_height="match_parent">

    <RelativeLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#134563"
    android:orientation="vertical"
    tools:context="com.galaxy.android.animals.MainActivity">

    <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content">

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <ImageView
                android:id="@+id/bg"
                android:layout_width="match_parent"
                android:layout_height="200dp"
                android:background="@drawable/bgfour" />

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_below="@+id/bg"
                android:orientation="horizontal">

                <LinearLayout
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:gravity="center"
                    android:orientation="vertical"
                    android:padding="2dp">

                    <ImageView
                        android:layout_width="200dp"
                        android:layout_height="200dp"
                        android:onClick="wildanimals"
                        android:paddingTop="2dp"
                        android:scaleType="fitXY"
                        android:src="@drawable/wildanimals" />

                    <ImageView
                        android:layout_width="200dp"
                        android:layout_height="200dp"
                        android:onClick="birds"
                        android:paddingTop="2dp"
                        android:scaleType="fitXY"
                        android:src="@drawable/birds" />

                    <ImageView
                        android:layout_width="200dp"
                        android:layout_height="200dp"
                        android:onClick="wateranimals"
                        android:paddingTop="2dp"
                        android:scaleType="fitXY"
                        android:src="@drawable/wateranimals" />

                    <ImageView
                        android:id="@+id/days"
                        android:layout_width="200dp"
                        android:layout_height="200dp"
                        android:onClick="amphibians"
                        android:paddingTop="2dp"
                        android:scaleType="fitXY"
                        android:src="@drawable/amphibians" />
                </LinearLayout>

                <LinearLayout
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:gravity="center"
                    android:orientation="vertical"
                    android:padding="2dp">

                    <ImageView
                        android:layout_width="200dp"
                        android:layout_height="200dp"
                        android:onClick="farmanimals"
                        android:paddingTop="2dp"
                        android:scaleType="fitXY"
                        android:src="@drawable/farmanimals" />

                    <ImageView
                        android:layout_width="200dp"
                        android:layout_height="200dp"
                        android:onClick="petanimals"
                        android:paddingTop="2dp"
                        android:scaleType="fitXY"
                        android:src="@drawable/petanimals" />

                    <ImageView
                        android:layout_width="200dp"
                        android:layout_height="200dp"
                        android:onClick="insects"
                        android:paddingTop="2dp"
                        android:scaleType="fitXY"
                        android:src="@drawable/insects" />

                    <ImageView
                        android:layout_width="200dp"
                        android:layout_height="200dp"
                        android:layout_marginBottom="50dp"
                        android:onClick="piano"
                        android:paddingTop="2dp"
                        android:scaleType="fitXY"
                        android:src="@drawable/animalspiano" />
                </LinearLayout>

            </LinearLayout>
        </RelativeLayout>
    </ScrollView>

   </RelativeLayout>

   <android.support.design.widget.NavigationView
    android:id="@+id/navigate"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_gravity="start"
    android:background="#FFF"
    android:headerLayout="@layout/my_header"
    app:fitsSystemWindows="true"
    app:menu="@menu/my_menu"/>
   </android.support.v4.widget.DrawerLayout>`

`

检查您的主要活动布局。第138行在138上有这个导航视图您的my_菜单在正确的位置吗?检查iyI我不知道为什么,但“xmlns:app=”“”表示从未使用过名称空间声明