[英]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.