【发布时间】:2013-12-15 09:52:43
【问题描述】:
是的,我有这个错误
<com.facebook.widget.ProfilePictureView
line 和 这是一个在 stackoverflow 上被问过很多次的问题,每次似乎都通过添加 xmlns:fb="http://schemas.android.com/apk/res -auto”在顶部。好吧,这并没有为我解决问题,不知道为什么:(那我该怎么办?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:fb="http://schemas.android.com/apk/res-auto"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:gravity="center_horizontal"
android:orientation="horizontal" >
<com.facebook.widget.ProfilePictureView
android:id="@+id/selection_profile_pic"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center_horizontal"
app:is_cropped="true"
facebook:preset_size="small" />
</LinearLayout>
我也试过了
xmlns:facebook="http://schemas.android.com/apk/res/com.facebook.samples.profilepicture"
但效果不佳
这是我的 project.properties 文件:
target=android-18
android.library=false
android.library.reference.1=..\\actionbarsherlock
android.library.reference.2=..\\library
android.library.reference.3=../facebook-android-sdk-3.6.0/facebook
试着改成
target=android-18
android.library=false
android.library.reference.1=..\\actionbarsherlock
android.library.reference.2=..\\library
android.library.reference.3=..\\facebook-android-sdk-3.6.0\facebook
但也没有结果
【问题讨论】: