0

我正在尝试添加以下库:

https://github.com/infospace/android_oauth2_webview

到我的项目,但我收到一个错误:

Class is not a View android.support.v4.app.Fragment

(我还更新了库和我的项目的 v4 支持库)这是我的项目主页:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"

tools:context=".MainActivity" >
<android.support.v4.app.Fragment
    android:id="@+id/webview"
    android:name="com.infospace.android.oauth2.AuthenticationFragment"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
     />

我究竟做错了什么?

提前感谢,丁。

4

1 回答 1

0

如果您从支持库中包含s,则需要使用 aFragmentActivity而不是。ActivityFragment

于 2014-01-03T01:48:48.783 回答