ABS fragment crashes on onCreate
===

i'm in need of some help regarding ActionBar Sherlock fragments.

I'm quite new to android programming but i've basically followed http://goo.gl/Nikyg (stackoverflow post) to create my fragments but the app crashes everytime i try to run on android 2.2 or 4.0

Can anyone help me? Code is as follows:

Mainactivity.java

    package br.com.example.fragmented;
    
    import android.os.Bundle;
    import com.actionbarsherlock.app.SherlockFragmentActivity;
    
    public class MainActivity extends SherlockFragmentActivity {
    
        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_main);
        }
    
    }

Layout file activity_main

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:orientation="vertical" >
    
        <Spinner
            android:id="@+id/spinner1"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content" />
    
        <Spinner
            android:id="@+id/spinner2"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content" />
    
        <fragment class="br.com.example.fragment1"
            android:id="@+id/fragment1"
            android:name="com.actionbarsherlock.app.SherlockFragment"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_weight="0.85" />
    
    </LinearLayout>

fragment1.java

    package br.com.example.fragmented;
    
    import android.os.Bundle;
    import android.util.Log;
    import android.view.LayoutInflater;
    import android.view.View;
    import android.view.ViewGroup;
    import com.actionbarsherlock.app.SherlockFragment;
    
    public class fragment1 extends SherlockFragment{
    	@Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            Log.i("First Fragment", "onCreate()");
        }
    
        @Override
        public View onCreateView(LayoutInflater inflater, ViewGroup container,
                Bundle savedInstanceState) {
            Log.i("First Fragment", "onCreateView()");
            return inflater.inflate(R.layout.fragment1layout, container, false);
        }
    }

fragment1layout.xml

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:orientation="vertical" android:layout_width="fill_parent"
        android:layout_height="fill_parent" android:background="#000000">
        
        <Button android:text="Landscape" 
            android:id="@+id/button1"
            android:layout_width="wrap_content" 
            android:layout_height="wrap_content">
            
        </Button>
    
    </LinearLayout>



Can anyone point where i am missing the error here? OH and i have set Theme to Sherlock.Light on Manifest by the way.