I'm developing an app which uses targetSdkVersion 27. We would like to integrate the Samsung Health Android SDK which has a targetSdkVersion support of 25.
Can this be done without problems?
Also the Play Store has a limit of min targetSDkVersion of 26 since this month. What does this mean regarding this? Will we able to upload the app into the Play Store?
Thanks
When building your project, Android Studio would merge the manifests of your libraries and your app. In the case of your libraries having a lower targetSDKVersion than your app, the app's version has higher priority and will override the library's.
https://developer.android.com/studio/build/manifest-merge
Related
My App is available and was accepted. It is only available for new android versions (API level 30). Is there a way after the recent change in November 2021. Is there a way to publish for older versions (API level 28). The big companies like supercell or Voodoo Games still publish for older versions. Do they have special privileges or how does this work?
I think you are confusing the targetSdkVersion and minSdkVersion values.
The minSdkVersion dictates the lowest version of android your app supports. You can ship an app with the latest targetSdkVersion and still support your app on older devices.
Check out the documentation: Android SDK version properties
The documentation for the sdk states "The SDK supports Android API 19 (Android 4.4+) through Android API 28 (Android 9.0)."
The app I will be working on has minSdkVersion 18. Do I need to increase my minSDKVersion or will the Intune SDK simply not work on Android API 18 and lower?
You can try to use the library with
<uses-sdk tools:overrideLibrary="microsoft intune package name" />
This will override the min sdk of that library. But it may break the library and can lead to erros and bugs.
The best way would be to increase your minSdk to 19 which is probably no problem since you would only loose 0.5% audience: https://developer.android.com/about/dashboards
I am trying to upload my instant app with targetSdkVersion 25 and my installed app is also with targetSdkVersion 25.
When I try to upload my instant app on play console, I am getting the following error,
I do not see in documentation that it is mandatory to support targetSdkVersion 26. What am I missing here ?
I cannot update my targetSdkVersion to 26 since targetting for my installable and instant app should be same.
My installable app must have targetSdkVersion of 25 for now due to a dependency. Can I upload my instant app with targetSdkVersion of 25 ?
Read Prepare your development environment.
Android SDK Build-Tools 26.x or higher
Android SDK Platform Tools 25.x or higher
Android SDK Tools (latest)
You should set
compileSdkVersion 27
buildToolsVersion '27.0.3'
And
defaultConfig {
targetSdkVersion 26
}
As Android evolves with each new version, some behaviors and even
appearances might change. However, if the API level of the platform is
higher than the version declared by your app's targetSdkVersion, the
system may enable compatibility behaviors to ensure that your app
continues to work the way you expect.
For those who are still wondering about this issue. Google imposed a restriction that both Instant app and install-able app should target at least 26.
I'm beginner in Android coding and i don't know if i need to create my first application by coding on Android SDK 2.2 or 7.1 (the latest version right now).
To make it clear, I will create an application to run on any type of android smartphone.
Thank you.
Per the Picking your compileSdkVersion, minSdkVersion, and targetSdkVersion blog post:
Therefore it is strongly recommended that you always compile with the latest SDK
Therefore you should compile with Android 7.1
minSdkVersion is the lower bound for your app
Generally, libraries you use will have a minSdkVersion - your app won't be able to support anything lower than that. Google Play services, for example, currently has a minSdkVersion of 9 (although it is increasing to 14 soon)
targetSdkVersion is the main way Android provides forward compatibility by not applying behavior changes unless the targetSdkVersion is updated
And your targetSdkVersion is best set to the highest level of Android you've tested your app on.
You'll note the conclusion of the article:
Ideally, the relationship would look more like this in the steady state:
minSdkVersion (lowest possible) <=
targetSdkVersion == compileSdkVersion (latest SDK)
I am new to the android development, I was wondering which Android version should I develop for? Some people told me to go with Kitkat 4.4.4, but some told me to go for 6.0 marshallmellow even though it only has little market share. I am also looking to purchase an android phone for development purpose, hopefully won't break my bank, any suggestions, galaxy??
HTC or Moto G 3rd Generation are best for testing purpose because i am also using these.
and apart from this you can build application for marshmallow but set min android version to 15.
enjoy your code time.
As an Android development, I agree with you to buy a new device. It should support Android6.0 better, then you can use it much longer. Below is our company's used version:
compileSdkVersion = 23
buildToolsVersion = "22.0.1"
minSdkVersion = 11
targetSdkVersion = 19
The target sdk version is 19 (Kitkat 4.4.4), while compile is 23, by this then you can use more google's sdk support, such as v7 and v4.
Hope to help you.
The most Stable Version of Android which is enough in your case is 5.1 (API 21) and you can set the minSdkVersion as 11 like you are doing in your current company.
Regarding the Device I recommand you first to Test your app on Debug Mode with a Virtual Emulator, try Genymotion, you will like it, quite fast and Responsive and free for your your personal usage, Then Regarding the device, you can use any device that can support your Targer SDK (19), In case your company gives you a project with Target SDK (23), you can just upgrade the OS Version on your Android Device.
Good luck