en
afsqam ar hy az eu be bn bs bg ca ceb ny zh-CN zh-TWco hr cs da nl en eo et tl fi fr fy gl ka de el gu ht ha haw iw hi hmn hu is ig id ga it ja jw kn kk km ko ku ky lo la lv lt lb mk mg ms ml mt mi mr mn my ne no ps fa pl pt pa ro ru sm gd sr st sn sd si sk sl so es su sw sv tg ta te th tr uk ur uz vi cy xh yi yo zu
Newsletter
Victor Mochere
No Result
View All Result
  • Wealth
  • Business
  • Education
  • Travel
  • Technology
  • Living
  • Entertainment
  • Governance
  • Sports
  • Life Hacks
en
afsqam ar hy az eu be bn bs bg ca ceb ny zh-CN zh-TWco hr cs da nl en eo et tl fi fr fy gl ka de el gu ht ha haw iw hi hmn hu is ig id ga it ja jw kn kk km ko ku ky lo la lv lt lb mk mg ms ml mt mi mr mn my ne no ps fa pl pt pa ro ru sm gd sr st sn sd si sk sl so es su sw sv tg ta te th tr uk ur uz vi cy xh yi yo zu
Victor Mochere
No Result
View All Result
en
afsqam ar hy az eu be bn bs bg ca ceb ny zh-CN zh-TWco hr cs da nl en eo et tl fi fr fy gl ka de el gu ht ha haw iw hi hmn hu is ig id ga it ja jw kn kk km ko ku ky lo la lv lt lb mk mg ms ml mt mi mr mn my ne no ps fa pl pt pa ro ru sm gd sr st sn sd si sk sl so es su sw sv tg ta te th tr uk ur uz vi cy xh yi yo zu
Victor Mochere
No Result
View All Result

How to change Android app API level

Victor Mochere by Victor Mochere
in Life Hacks
Reading Time: 3min read
A A
0
How to change Android app API level

API level is an integer value that uniquely identifies the framework API revision offered by a version of the Android platform. The Android platform provides a framework API that applications can use to interact with the underlying Android system. The framework API consists of:

  • A core set of packages and classes
  • A set of XML elements and attributes for declaring a manifest file
  • A set of XML elements and attributes for declaring and accessing resources
  • A set of Intents
  • A set of permissions that applications can request, as well as permission enforcements included in the system

Contents

  • Uses of API level in Android
  • What is SdkVersion?
  • How to change Android app SdkVersion

Uses of API level in Android

The API level identifier serves a key role in ensuring the best possible experience for users and application developers:

  • It lets the Android platform describe the maximum framework API revision that it supports
  • It lets applications describe the framework API revision that they require
  • It lets the system negotiate the installation of applications on the user’s device, such that version-incompatible applications are not installed.

Each Android platform version stores its API level identifier internally, in the Android system itself.

What is SdkVersion?

Applications can use a manifest element provided by the framework API – – to describe the minimum and maximum API levels under which they are able to run, as well as the preferred API level that they are designed to support. The element offers three key attributes:

  • minSdkVersion – Specifies the minimum API level on which the application is able to run. The default value is “1”
  • targetSdkVersion – Specifies the API level on which the application is designed to run. In some cases, this allows the application to use manifest elements or behaviors defined in the target API level, rather than being restricted to using only those defined for the minimum API level
  • maxSdkVersion – Specifies the maximum API level on which the application is able to run

When the user attempts to install an application, or when revalidating an application after a system update, the Android system first checks the attributes in the application’s manifest and compares the values against its own internal API level. The system allows the installation to begin only if these conditions are met:

  • If a android:minSdkVersion attribute is declared, its value must be less than or equal to the system’s API level integer. If not declared, the system assumes that the application requires API level 1
  • If a android:maxSdkVersion attribute is declared, its value must be equal to or greater than the system’s API level integer. If not declared, the system assumes that the application has no maximum API level

How to change Android app SdkVersion

You can use Android Studio to change your Android app API level (SDK Version) with these two methods.

a. In build.gradle file

  1. Select ‘Project’ in the Project View
  2. Under app folder, select ‘build.gradle‘ file
  3. You can now edit the minSdkVersion and targetSdkVersion displayed in the right panel
  4. Once done, click on ‘Sync’ on the top right corner of the ‘build-gradle‘ file

b. In project structure dialog

  1. From the top menu, select File > Project Structure
  2. In the Project Structure dialog, select ‘app’ in the Modules list
  3. Select ‘Flavors’ tab in the right panel
  4. Select your desired minSdkVersion and targetSdkVersion
  5. Click ‘OK’ to save the selection
  6. From the top menu, click Build > Rebuild Project, to rebuild the Android project
  7. The build.gradle file will be changed automatically

Tags: Apps
Previous Post

How to bypass news sites paywalls

Next Post

Top 10 most business friendly countries in the world 2021

Victor Mochere

Victor Mochere

Victor Mochere is an award winning blogger, social media influencer, literati savant, altruistic, and a netpreneur creating and marketing digital content.

Related Posts

Victor Mochere - Banner
Life Hacks

How to prevent a hangover

Top 10 best cities in the world to visit
Life Hacks

Top 20 countries with the most Nobel Prizes 2021

How to anonymously browse the internet
Life Hacks

How to anonymously browse the internet

How to bypass censored websites
Life Hacks

How to bypass censored websites

How to bypass internet shutdown
Life Hacks

How to bypass internet shutdown

How to register for Equity Bank Self Service Portal
Life Hacks

How to register for Equity Bank Self Service Portal

Next Post
Top 10 most business friendly countries in the world

Top 10 most business friendly countries in the world 2021

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

I agree to the Comment Policy.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Trending posts

  • Top 10 highest earning creators on OnlyFans

    Top 10 highest earning creators on OnlyFans 2021

    2 shares
    Share 0 Tweet 0
  • Top 10 best gay dating apps 2021

    1 shares
    Share 0 Tweet 0
  • How to upload long videos on Twitter

    1 shares
    Share 0 Tweet 0
  • Best sites to watch or download movies for free

    4 shares
    Share 4 Tweet 0
  • Top 20 richest actors in the world 2021

    0 shares
    Share 0 Tweet 0

Download our app

Google-play
Shopping-bag
Amazon

Newsletter

Subscribe to our newsletter and get the latest posts delivered to your inbox.

*We hate spam as you do.

Editorial policy

Permission to use quotation from any article is granted subject to full credit of the source being given by referencing the direct link of the article on Victor Mochere. However, reproducing any content on this site without explicit permission is strictly prohibited.

Report a correction or typo

We are committed to upholding our editorial standards, including accuracy. Our policy is to review each issue on a case by case basis, immediately upon becoming aware of a potential error or need for clarification, and to resolve it as quickly as possible. If you notice an error or typo that needs correction, please don’t hesitate to contact us for immediate action.

ABOUT US

Victor Mochere brings you a daily dose of well curated up to date facts, news, opinions and important updates from Kenya, Africa and around the World.

FOLLOW US

Facebook-f
Twitter
Instagram
Pinterest
Linkedin
Youtube
Telegram
Rss

FIND US ON

Newspaper
Flipboard

TOPICS

  • Business
  • Education
  • Entertainment
  • Flacked
  • Governance
  • Life Hacks
  • Living
  • Sports
  • Technology
  • Travel
  • Wealth

DOWNLOAD OUR APP

Google-play
Shopping-bag
Amazon

NEWSLETTER

Subscribe to our newsletter and get the latest posts delivered to your inbox.

*We hate spam as you do.

  • Advertise
  • Disclaimer
  • Copyright
  • DMCA
  • Cookies
  • Privacy Policy
  • Write For Us
  • Contact

Copyright © 2021 Victor Mochere. All rights reserved.

No Result
View All Result
  • Topics
    • Wealth
    • Business
    • Education
    • Travel
    • Technology
    • Living
    • Entertainment
    • Governance
    • Sports
    • Life Hacks
  • About
    • Victor Mochere Bio
  • Archives
  • CPA Notes
  • Digital Marketing
  • Social Media Policy
  • Sitemap

Copyright © 2021 Victor Mochere. All rights reserved.

Download our app

Google Play Store

Samsung Galaxy Store

Amazon Appstore