我试图在我的应用中使用facebook SDK。 在构建我的错误时:
res/layout/picker_title_bar.xml:44: error: No resource identifier found for attribute 'layout_alignStart' in package 'android'
我试图针对android-16
或android-18
进行构建,将min-sdk
设置为 8 ,然后不去。
我想知道我的配置有什么问题,因为我不可能成为唯一一个遇到这个问题的人。
可能出了什么问题?
错误来自这里:
<LinearLayout
android:id="@+id/com_facebook_picker_divider"
android:layout_width="1dp"
android:layout_height="match_parent"
android:background="#40000000"
android:layout_alignLeft="@id/com_facebook_picker_done_button"
android:layout_alignStart="@id/com_facebook_picker_done_button"
android:orientation="horizontal"/>
此LinearLayout
的父级是RelativeLayout
。
编辑: 根据Facebook,4.5.0 API需要android-15或更新版本。 https://developers.facebook.com/docs/android/upgrading-4.x
所以我猜我的min-sdk设置为15就足够了?