compileSdk VS. targetSdk VS. minSdk - THIS Is the Difference

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ม.ค. 2025

ความคิดเห็น • 39

  • @anupdey99
    @anupdey99 ปีที่แล้ว +16

    Great video as always
    So the summary is the following
    Min SDK - Minimum Android API level your app can run on.
    Target SDK - The version of Android that your app was created to run on.
    Compile SDK - The version of the Android SDK that your app is compiled against during the build process. It determines the set of APIs and features available for you to use in your code.

  • @duhankazanci
    @duhankazanci ปีที่แล้ว +2

    Philipp you are a real G. You make good, easy to look at , high quality videos and thumbnails

  • @MobileMastersAndroidiOS
    @MobileMastersAndroidiOS ปีที่แล้ว +4

    Your explanation was incredibly clear and easy to follow! In most of my projects, I set minSdk to 21 because we use some POS devices that still run on older Android versions.

  • @rajayendluri5793
    @rajayendluri5793 ปีที่แล้ว

    00:01 The main difference between compile SDK, minimum SDK, and target SDK is their functionality and purpose.
    01:02 The difference between compileSdk, targetSdk, and minSdk
    02:06 The compileSdk, targetSdk, and minSdk versions determine the Android versions an app supports and the compatibility issues it may face.
    03:09 Setting the target SDK version allows developers to indicate awareness and readiness for behavior changes in Android
    04:08 Setting a low target SDK version like 26 can bypass modern Android restrictions but prevent app publishing on Google Play.
    05:05 The compile SDK version refers to the Android API level used to compile the app.
    06:07 The compileSdk, targetSdk, and minSdk versions affect the functionality and features of the Android app.
    07:14 compileSdk, targetSdk, and minSdk are different versions in Android development.

  • @vaibhavpatil8297
    @vaibhavpatil8297 ปีที่แล้ว

    Hey Philip Vaibhav Here,
    Great video, like videos about certain specific features in UI and Hardware and concepts are always welcome
    But the videos like this are very helpful, just now I watched ur 2 year old video about progaurd and it was very helpful.
    So keep making these kinds of videos once in a while.

  • @zainnn84991
    @zainnn84991 ปีที่แล้ว +2

    I still don't get it
    Why not have the same Target & Compile SDK - why are they seperate?

  • @seannajera1265
    @seannajera1265 ปีที่แล้ว

    6 years later, and I still didn't know the difference 😂 thanks

  • @jewelsbypodcasterganesh
    @jewelsbypodcasterganesh ปีที่แล้ว +2

    I still don't get it. How are we compiling with the latest sdk but running on an old device?

    • @harshgamerx1093
      @harshgamerx1093 ปีที่แล้ว

      Because of backward compatibility of android SDK i guess

    • @vibovitold
      @vibovitold ปีที่แล้ว +2

      because having a min sdk value ensures that the code cannot use stuff from newer SDKs that the old device wouldn't understand
      and the old stuff within the SDK doesn't change (that's what ^ backwards compatibility ^ means)

    • @marianpazdzioch5437
      @marianpazdzioch5437 11 หลายเดือนก่อน

      Compiling only makes your code able to fit with code up to compileSdk. When some SDK added new method then you have to add (in your app's code) runtime checks if(this is enough SDK) then call that method.
      On older versions that method will not be called (because it does not exist there).
      Of course the same SDK method may be doing different things internally, but that's a different pair of smelly shoes.

  • @Bezimienny
    @Bezimienny ปีที่แล้ว

    Android continues to make life complicated as always. Thank you Google.

  • @jopadjr
    @jopadjr ปีที่แล้ว +1

    725th...Thanks Philipp. May I suggest a topic if it is ok. When changing the SDK (compile, target and min), sometimes it affects the dependencies ('implementation') you set in the build gradle. Would you mind discussing this next please Philipp? Thanks in advance.

  • @derfiemcgoo9673
    @derfiemcgoo9673 หลายเดือนก่อน

    Please do a 30 min video on only targetsdk. Make lots of example scenarios like “joe sets compile sdk at 32. He sets target at 29. He uses a feature from api 31. Fred has a phone with api 30. If fred runs joes app, will the feature work? Why or why not?” Jenny has a phone with api 31. Does her app behave identically to freds? Why or why not? (I have been tinkering wuth android for 10 yrs and have published apps also with flutter and I still dont understand targetsdk)

  • @dnyaneshwarpatil6537
    @dnyaneshwarpatil6537 ปีที่แล้ว +1

    I have a Laptop with 8gb ram can i run Android studio on it

  • @prasannadeshpande4435
    @prasannadeshpande4435 ปีที่แล้ว +1

    Hey Philip! Do you have any course on AOSP? Or do you plan to include any in future on your website?

    • @zainnn84991
      @zainnn84991 ปีที่แล้ว +1

      This would be useful!

  • @nem1st
    @nem1st 7 หลายเดือนก่อน

    Its all great but I was a little bit disappointed when I realized that there is no preview annotations for compose multiplatform😢

  • @andriibibik39
    @andriibibik39 ปีที่แล้ว

    Great! Video created just 1 day ago. How lucky am I? :) Im trying to upgrade to sdk 34 also)

  • @AbhinavKulshreshtha
    @AbhinavKulshreshtha ปีที่แล้ว +1

    is this reupload? Because I swear I saw this video on your channel few weeks ago?

  • @mkc0321
    @mkc0321 ปีที่แล้ว

    Very useful

  • @iskalalrozhan
    @iskalalrozhan ปีที่แล้ว

    Do you know the best library to make chart in jetpack compose?

  • @CryptoCodeZone
    @CryptoCodeZone ปีที่แล้ว +1

    You do not need to specify targerSdk anymore!

  • @nr_developer
    @nr_developer ปีที่แล้ว

    Bro did you make a app to capture 360degree image and show it in another activity . Bro it is one activity of my college project i have just 1 months i mean i need to submit my project in January so if you help me regarding that then i am so helpful to you please make a video there are no video on the internet to capture 360 degree image and preview it in another activity .... There are no video regarding that

  • @PreetamBhosle
    @PreetamBhosle ปีที่แล้ว

    @philipp Lackner can you offer purchase power parity discount. I want buy bundle.

  • @johnkenedy
    @johnkenedy ปีที่แล้ว

    Arigatou

  • @aymenkhanfir2000
    @aymenkhanfir2000 ปีที่แล้ว

    Thanks for the video ❤👏
    I began learning Android approximately five days ago. Can someone assist me with the following question: Is it possible to automatically generate a comment after closing a bracket in Android Studio, similar to what occurs when developing a mobile app using Flutter?

    • @vibovitold
      @vibovitold ปีที่แล้ว +1

      You probably mean IDE hints? These aren't comments. They look like ones, but they aren't real : ) They're not part of the file, it's just a preview generated by the plugin on the fly.
      I don't know if that behaviour can be recreated in the scope of native Android development, maybe there's a plugin for that, but YOU SHOULDN'T NEED IT. It's not part of the standard setup, never has been. Let Flutter be Flutter, but don't transplant Flutter things and customs elsewhere. It's generally good approach whenever switching platforms - "in Rome do as Romans do".

  • @greensquadz7651
    @greensquadz7651 ปีที่แล้ว

    Sorry, Just want to ask something 😊
    I have Java based older apps and I updated it 2 month ago with jetpack compose based to api 34, after updating the apps, the update button didnt appear in the playstore page, I tried with my other phone I uninstalled the older ver ( Java based app ) and I reinstalled it ( jetpack compose app ) and I updated again into higher ver
    1. My older app ( Java based ) didnt get update
    2. My app ( jetpack compose )
    Got an update and the update button appeared
    Any solution to fix it, so my app users who still in older app ( Java based ) get the update ?
    Thanks 😊

  • @The_kotlin
    @The_kotlin ปีที่แล้ว

    I'm from Russia and I'm watching videos thanks to the built-in translator from yandex, and in translation you speak so fast, I also have a channel on Android Studio, where I share useful information

  • @icodethis
    @icodethis ปีที่แล้ว

    goat

  • @bro_chenzox
    @bro_chenzox ปีที่แล้ว

    I miss the English of the man I signed up. Americanizing of *R* erases important sounds necessary to understand the meaning of a word. In this language, one sound often changes the meaning completely, think of that please.

    • @vibovitold
      @vibovitold ปีที่แล้ว +1

      Am I the only one who doesn't get what this guy is saying?
      Some example would help.
      If it's drugs, I'll have what he's having.

    • @EdKolis
      @EdKolis ปีที่แล้ว

      I think he's talking about pronunciation of the letter R? But what an American pronunciation of that means isn't even defined since a person from Boston will pahk theh cah while a person from Chicago will park their car!

  • @khanra17
    @khanra17 ปีที่แล้ว

    If someone can't even understand this by name.
    He should not only stop Android dev but he should not do anything computer related.

    • @vibovitold
      @vibovitold ปีที่แล้ว +1

      The implications of targetSdk being different than compileSdk are not obvious based on these names alone.