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

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ก.ค. 2024
  • In this video I share the difference between minSdk, targetSdk and compileSdk in simple terms :)
    🏴🏴🏴 The last few hours of the PL Coding Black Week Sale 🏴🏴🏴
    pl-coding.com/premium-courses...
    💻 Let me be your mentor and become an industry-ready Android developer in 10 weeks:
    pl-coding.com/drop-table-ment...
    Get my FREE PDF about 20 things you should never do in Jetpack Compose:
    pl-coding.com/jetpack-compose...
    Regular programming advice on my Instagram page:
    / _philipplackner_
    Join my Discord server:
    / discord

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

  • @anupdey99
    @anupdey99 7 หลายเดือนก่อน +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 7 หลายเดือนก่อน +2

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

  • @MobileMastersAndroidiOS
    @MobileMastersAndroidiOS 7 หลายเดือนก่อน +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.

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

    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.

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

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

  • @jopadjr
    @jopadjr 7 หลายเดือนก่อน +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.

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

    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.

  • @prasannadeshpande4435
    @prasannadeshpande4435 7 หลายเดือนก่อน +1

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

    • @zainnn84991
      @zainnn84991 7 หลายเดือนก่อน +1

      This would be useful!

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

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

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

    Very useful

  • @dnyaneshwarpatil6537
    @dnyaneshwarpatil6537 7 หลายเดือนก่อน +1

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

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

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

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

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

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

    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 😊

  • @nem1st
    @nem1st 12 วันที่ผ่านมา

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

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

    Arigatou

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

    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 7 หลายเดือนก่อน +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".

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

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

  • @CryptoCodeZone
    @CryptoCodeZone 7 หลายเดือนก่อน +1

    You do not need to specify targerSdk anymore!

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

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

  • @jewelsbypodcasterganesh
    @jewelsbypodcasterganesh 7 หลายเดือนก่อน +2

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

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

      Because of backward compatibility of android SDK i guess

    • @vibovitold
      @vibovitold 7 หลายเดือนก่อน +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 4 หลายเดือนก่อน

      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.

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

    Here is one more interesting thing to talk about in this context: compileSdkExtension

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

    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

  • @AbhinavKulshreshtha
    @AbhinavKulshreshtha 7 หลายเดือนก่อน +1

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

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

    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 7 หลายเดือนก่อน

    goat

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

    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 7 หลายเดือนก่อน

      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 6 หลายเดือนก่อน

      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 7 หลายเดือนก่อน

    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 7 หลายเดือนก่อน +1

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