Class requires API level 11 (current min is 8)
-
Hi, I am new to Android Stuio. I created a project with the default setting and the added a fragment layout then fragment class I am now getting the following error: Class requires API level 11 (current min is 8) on this line: public class WeatherFragment extends Fragment { here is my 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;
and this is my Manifest:
Technology News @ www.JassimRahma.com
-
Hi, I am new to Android Stuio. I created a project with the default setting and the added a fragment layout then fragment class I am now getting the following error: Class requires API level 11 (current min is 8) on this line: public class WeatherFragment extends Fragment { here is my 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;
and this is my Manifest:
Technology News @ www.JassimRahma.com
Android introduced fragments in Android 3.0 (API level 11), you have to include this users-sdk inside the manifest file
<manifest>
<uses-sdk android:minSdkVersion="11" />
...
</manifest>Refer: 1. android-fragments[^] 2. manifest-uses-sdk-element[^]
-
Hi, I am new to Android Stuio. I created a project with the default setting and the added a fragment layout then fragment class I am now getting the following error: Class requires API level 11 (current min is 8) on this line: public class WeatherFragment extends Fragment { here is my 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;
and this is my Manifest:
Technology News @ www.JassimRahma.com
Go to Android manifest file and Change API level