简体   繁体   English

在此行发现多个注释:-错误:在包中找不到属性'fetch_user_info'的资源标识符

[英]Multiple annotations found at this line: - error: No resource identifier found for attribute 'fetch_user_info' in package

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:facebook="http://schemas.android.com/apk/res-auto"
      android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:gravity="center_horizontal"
    android:orientation="vertical"
    android:padding="20dp" >

    <com.facebook.login.widget.LoginButton

        android:id="@+id/fb_login_button"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="5dp"
        facebook:confirm_logout="false"
        facebook:fetch_user_info="true" />

    <TextView
        android:id="@+id/user_name"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:layout_margin="10dp"
        android:textSize="18sp" />

    <Button
        android:id="@+id/update_status"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="update_status" />

    <Button
        android:id="@+id/post_image"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="post_image" />

</LinearLayout>

this is my login page for face i am getting Error : 这是我的登录页面,我遇到错误:

- error: No resource identifier found for attribute 'fetch_user_info' in package 
'com.example.facebookexmaple' 
 - error: No resource identifier found for attribute 'confirm_logout' in package 
 'com.example.facebookexmaple'

at <com.facebook.login.widget.LoginButton  

while I have already added library and facebook name space please tell me how to fix it. 虽然我已经添加了库和Facebook命名空间,请告诉我如何解决。

At First, add xmlns:fb="http://schemas.android.com/apk/res-auto" instead xmlns:facebook="http://schemas.android.com/apk/res-auto" 首先,添加xmlns:fb="http://schemas.android.com/apk/res-auto"代替xmlns:facebook="http://schemas.android.com/apk/res-auto"

For demo please check Getting Started with the Facebook SDK for Android 有关演示,请查看Android版Facebook SDK入门

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在此行发现多个注释:-错误:在包&#39;android&#39;中找不到属性&#39;layout_alignBaseLine&#39;的资源标识符 - Multiple annotations found at this line: - error: No resource identifier found for attribute 'layout_alignBaseLine' in package 'android' 错误:(4)在包中找不到属性“ id”的资源标识符 - Error:(4) No resource identifier found for attribute 'id' in package 错误:在包中找不到属性“ showOuterShadow”的资源标识符 - error: No resource identifier found for attribute 'showOuterShadow' in package 错误:在包6中找不到属性&#39;showsAsAction&#39;的资源标识符 - Error: No resource identifier found for attribute 'showsAsAction' in package 6 错误:在包“package name”中找不到属性&#39;roundLayout&#39;的资源标识符 - error: No resource identifier found for attribute 'roundLayout' in package “package name” 错误:在包“ android”中找不到属性“ textappearance”的资源标识符 - error: No resource identifier found for attribute 'textappearance' in package 'android' 错误:在包“ android”中找不到属性“ alignParentBottom”的资源标识符 - error: No resource identifier found for attribute 'alignParentBottom' in package 'android' 错误:在包“ android”中找不到属性“ layout_toLeftof”的资源标识符 - error: No resource identifier found for attribute 'layout_toLeftof' in package 'android' 错误:在包中找不到属性“ layout_alignStart”的资源标识符 - error: No resource identifier found for attribute 'layout_alignStart' in package 如何解决错误:(5)在包“ android”中找不到属性“ iconTint”的资源标识符? - How to resolve Error:(5) No resource identifier found for attribute 'iconTint' in package 'android'?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM