How do I set the minimum api level for projects in Android Studio?

android, android-studio, gradle

Solution

I have 0.8.6 version and it's can be done like this:

In the menu: File -> Project Structure.

In the open menu, navigate to `app`, then in the tabs choose `Flavors`.

Problem

I recently migrated a project into Android Studio 0.4.3. When compiling, it gave me errors on several lines of java, including the following: ``` FragmentManager fm = getFragmentManager(); fm.findFragmentById() @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getResources().getStringArray(R.array.course_descriptions); ``` I see the following error message: ``` Call requires API level 11 (current min is 7) ``` I'm running Android Studio .0.4.3. I also downloaded Android 4.4.2 (API 19) through the SDK manager. I added the following line to my manifest: ``` <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="19" /> ``` I did a "Sync Project with Gradle files", cleaned and rebuilt the project. I still see the same errors. How do I fix this issue ?

Original source