2015-05-15 3 views
1

я вижу изучение this кодНет идентификатора ресурса найдено для атрибута "Facebook"

У меня есть исключение:

Error:(15) No resource identifier found for attribute 'com_facebook_confirm_logout' in package 'by.polykov.myclientsocialnetwork' 
Error:(15) No resource identifier found for attribute 'com_facebook_tooltip_mode' in package 'by.polykov.myclientsocialnetwork' 
Error:(38) No resource identifier found for attribute 'com_facebook_preset_size' in package 'by.polykov.myclientsocialnetwork' 
Error:Execution failed for task ':app:processDebugResources'. 
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'E:\Android SDK\build-tools\21.1.2\aapt.exe'' finished with non-zero exit value 1 

из

<?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:orientation="vertical" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:background="#FFF" 
    > 
    <LinearLayout android:orientation="vertical" 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:background="#FFF" 
     android:id="@+id/main_ui_container"> 
     <com.facebook.login.widget.LoginButton 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:layout_marginTop="5dp" 
      android:layout_gravity="center_horizontal" 
      facebook:com_facebook_confirm_logout="false" 
      facebook:com_facebook_tooltip_mode="never_display" 
      /> 
     <LinearLayout 
      android:layout_width="150dp" 
      android:layout_height="wrap_content" 
      android:layout_gravity="center_horizontal" 
      android:gravity="center_horizontal" 
      android:orientation="vertical" 
      > 
      <TextView 
       android:id="@+id/greeting" 
       android:layout_width="wrap_content" 
       android:layout_height="wrap_content" 
       android:layout_marginLeft="10dp" 
       android:layout_gravity="center" 
       android:textColor="#333" 
       android:textSize="18sp"/> 
      <com.facebook.login.widget.ProfilePictureView 
       android:id="@+id/profilePicture" 
       android:layout_height="wrap_content" 
       android:layout_width="wrap_content" 
       android:gravity="center_horizontal" 
       android:layout_marginBottom="10dp" 
       facebook:com_facebook_preset_size="normal"/> 
      <Button 
       android:id="@+id/postStatusUpdateButton" 
       android:layout_width="fill_parent" 
       android:layout_height="wrap_content" 
       android:text="Post Status Update" 
       /> 
      <Button 
       android:id="@+id/postPhotoButton" 
       android:layout_width="fill_parent" 
       android:layout_height="wrap_content" 
       android:text="Post Photo" 
       /> 

     </LinearLayout> 
    </LinearLayout> 

</LinearLayout> 

Я использую compile 'com.facebook.android:facebook-android-sdk:4.0.0'

Что случилось? Помогите пожалуйста

+0

добавить компилировать «com.facebook.android:facebook-android-sdk:4.1. 0 'Теперь все работает))) – toni7777

+0

опубликовать этот комментарий как aswer, должен быть полезен другим разработчикам! : D – Jorgesys

+0

Я новый пользователь, и я не знаю, где нажать, что \t сообщение есть, помогите, sori – toni7777

ответ

1

решение решена @ toni7777 добавлял зависимость компиляции с последней версией Facebook SDK:

dependencies { 
    compile 'com.facebook.android:facebook-android-sdk:4.1.0' 
} 
+1

спасибо за помощь – toni7777

Смежные вопросы