I have been building a project and testing it on the Android emulator.
I realized that I set the minSdkVersion
to 10. Now, I have a phone to test the p
check it: Android Studio->file->project structure->app->flavors->min sdk version and if you want to run your application on your mobile you have to set min sdk version less than your device sdk(API) you can install any API levels.
Set the min SDK version in your project's AndroidManifest.xml file and in the toolbar search for "Sync Projects with Gradle Files" icon. It works for me.
Also look for your project's build.gradle file and update the min sdk version.
Open the app/build.gradle
file and check the property field compileSdkVersion
in the android
section. Change it to what you prefer.
If you have imported external libraries into your application (Ex: facebook), then make sure to check facebook/build.gradle
also.