Klasse erfordert API-level 11 (Strom min 8)

Ich bin neu auf Android-Stuio. Ich habe ein Projekt erstellt mit der Standardeinstellung und dem zusätzlichen fragment-layout dann die fragment-Klasse

Ich jetzt immer die folgende Fehlermeldung:

Klasse erfordert API-level 11 (Strom min 8)

in dieser Zeile:

public class WeatherFragment extends Fragment {

hier ist mein import:

import android.app.Activity;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.ActionBar;;
import android.support.v4.app.FragmentManager;
import android.content.Context;
import android.os.Build;
import android.os.Bundle;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.support.v4.widget.DrawerLayout;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import android.app.Fragment;
import android.support.v4.app.ListFragment;

und dies ist mein Manifest:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.jassim.yallabahrain.app" >

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name="com.jassim.yallabahrain.app.MainActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>
  • hmm, ich wusste nicht, dass google.com funktioniert nicht....
  • hier ist das schöne tutorial für die Umsetzung fragment in älteren Gerät.hoffentlich wird es dienen Ihrem Zweck.
InformationsquelleAutor Jassim Rahma | 2014-04-04
Schreibe einen Kommentar