As everybody, I use in my project many libraries and methods. For each method, it is mentioned "Available since API XX" in the Android documentation.
Is there a tool in Ecplise to know what is the minimum API required to run my project ? (without having to go throw all the methods used in my project to check which one uses the lowest API...)
A solution is to use the emulator with different levels of API but is there any other simple tool to do this checking ?
I use Eclipse.
Thanks !
[EDIT]
Found the solution ! What I actually did is the following (very simple): 1) Right click on your project folder (blue folder) 2) Click "Properties" 3) Click "Android" 4) Decrease the API version 5) Click on "Apply" and "OK" 6) See if some errors appears 6) Repeat the procedure until finding the lowest API for which one you don't have errors 7) Write the API level in targetSdkVersion in your AndroidManifest.xml !! 8) Finally, test the app in the emulator set up with this minimum API level !
Starting November 1, 2022 if your app doesn't target API level 30 or above, new users with newer Android OS versions won't be able to discover or install your app on Google Play. You can request an extension if you need more time to update your app.
android:minSdkVersion — Specifies the minimum API Level on which the application is able to run. The default value is "1".
For instance, Android 1.0 is API level 1 and Android 4.4 is API level 19. The API level allows you to declare the minimum version with which your app is compatible, using the <uses-sdk> manifest tag and its minSdkVersion attribute.
Go to: File > Project Structure , then under modules choose your module (that probably will be app , then under the tab flavors you can see minimum sdk and target sdk. There is no maximum because many things changes during times.
Decrease the value oftargetSdkVersion
in your AndroidManifest.xml
, and keep decreasing it until you start to get errors or warnings.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With