how to Change my app's target API level from 23 to 26

会有一股神秘感。 提交于 2019-12-10 17:40:03

问题


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!


回答1:


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




回答2:


you can change your API from build.gradle file.




回答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:

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




回答4:


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



来源:https://stackoverflow.com/questions/50404548/how-to-change-my-apps-target-api-level-from-23-to-26

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!