[英]No resource identifier found for attribute 'paddingEnd' in Package 'android'
[英]No resource identifier found for attribute 'menu' in package in Android
在Android的程序包中找不到屬性“ menu”的資源標識符:
我在布局xml文件中遇到此錯誤。 我的項目文件夾中包含以下庫: android-support-v4.jar
和android-support-v7-appcompat.jar
。
(使用Eclipse)
這是我的XML:
<android.support.design.widget.NavigationView
android:id="@+id/navigation_view"
android:layout_height="match_parent"
android:layout_width="wrap_content"
android:layout_gravity="start"
app:headerLayout="@layout/header"
app:menu="@menu/drawer"
/>
Build.Gradle:
compile 'com.android.support:design:22.2.0'
PS:我正在使用Eclipse Mars,並且在構建和導入外部庫時遇到很多問題。 這太麻煩了,所以我正在考慮改用Android Studio。 請就此給我任何有用的建議。
我最終改用Android Studio,從而解決了該問題。 嘗試添加支持庫時,Eclipse似乎有很多錯誤。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.