7

I have a problem when i try to upload my app to google play console and it is the API level that is must be 26 and my app is just developped with 23 version and now i don't know how to change this API version from 23 to 26 to make it works without errors.

Help me please!

Mahrez
  • 71
  • 1
  • 1
  • 2
  • 2
    `to make it works without errors` there is no universal way to do that. You just need to fix all errors. – Vladyslav Matviienko May 18 '18 at 05:59
  • This should help you fix some errors https://developer.android.com/about/versions/oreo/android-8.0-changes – svkaka Sep 10 '18 at 13:37
  • https://stackoverflow.com/questions/49140950/failed-to-resolve-com-android-supportappcompat-v7-no-matter-what-i-do/53749951#53749951 if u still not solve the issue, there is some answers helped me – greenridinghood Dec 12 '18 at 19:42
  • Possible duplicate of [Changing API level Android Studio](https://stackoverflow.com/questions/19465049/changing-api-level-android-studio) – Devealte Feb 07 '19 at 11:49

6 Answers6

11

Steps:

  1. Go to File >Project Structure.
  2. select App Module in left panel
  3. select Flavour tab from the top menu tabs
  4. You can change the Min SDK version (In your case change Target SDK Version to 26)
  5. Click Ok

Reference: http://abhiandroid.com/androidstudio/change-api-sdk-level-android-studio.html

Subrata
  • 166
  • 7
6

you can change your API from build.gradle file. enter image description here

Harish Rawal
  • 176
  • 1
  • 14
3

However, there is answer that answered by friend below, just want to inform that if changing the version of the API. You also need to consider the library from the build.gradle app.

for example:

enter image description here

If you change the version, the default library file has to change to the version of your API version.

Example

implementation 'com.android.support:appcompat-v7:27.1.0' with my API version 27

Kopi Bryant
  • 1,139
  • 12
  • 26
3

In the latest version of Android Studio as of dated 2020, perform the following steps:

  1. Click on Files (top left)

  2. Go to Project Structure (Ctlr + Alt + Shift + S)

  3. Click on modules

  4. In the right pane, click on Default Config (Middle one)
  5. Change Minimum SDK version
  6. Apply and click OK

Done!

Vani Gupta
  • 344
  • 2
  • 12
1

For those looking at this in Android Studio 3.5.3

  1. Go to File >Project Structure.
  2. Select Modules on the left panel
  3. Select app on center panel
  4. On the right panel, click on Default Config
  5. Change Target SDK Version to the required version

enter image description here

Simo D'lo Mafuxwana
  • 3,204
  • 6
  • 37
  • 53
0

You can change minSdkVersion from 23 to 26, under "Gradle Scripts>>build.gradle(Module:app)".then sync

M.J Jalali
  • 87
  • 8