Which Compile Options Should You Choose? (Java & Kotlin Version) - Android Studio Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ต.ค. 2023
  • In this video you'll learn about the compileOptions and kotlinOptions Gradle fields to set both the bytecode as well as the language version. You'll learn the differences and which version you should choose.
    💻 Let me be your mentor and become an industry-ready Android developer in 10 weeks:
    pl-coding.com/drop-table-ment...
    ⭐ Courses with real-life practices
    ⭐ Save countless hours of time
    ⭐ 100% money back guarantee for 30 days
    ⭐ Become a professional Android developer now:
    pl-coding.com/premium-courses/
    Regular programming advice on my Instagram page: / _philipplackner_
    Join my Discord server:
    / discord

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

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

    Thanks for the video. Looking forward for more full KMM tutorials 🤞

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

    Thank you for posting this. I didn't quite understand these options and now I understand them thanks to you.

  • @jedikv
    @jedikv 7 หลายเดือนก่อน +9

    This was useful. Thanks!
    Looks like there's a duplicated cut/clip 3:57 and 4:04

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

      I did a doubletake here too, like didn't we just talk about that version? 😆

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

      Glitch in the matrix ...

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

    Top content as usual! I would like to suggest a topic for future videos if you have a chance. Compose theming for multi flavor apps. Thanks for the consiredation!

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

    Hey Philipp! I like the new background!

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

    Love the new background!

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

    awesome video, thanks man

  • @h4ktbtw
    @h4ktbtw 7 หลายเดือนก่อน +3

    JDK’s compiler does not compile Kotlin. Kotlin has its own compiler which is actually currently being rewritten (K2)

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

    225th...Thanks Philipp for having this topic. When I added hilt, I got into trouble on Gradle JDK. I abandoned it but now I will try to get back to it 👍

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

    Informative.

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

    Thank you for this theme

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

    Thanks philipp

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

    Hi Phillipp, I have set both the "targetCompatibility" and "sourceCompatibility" properties to JavaVersion.VERSION_11. How do I then use Java 11 code features in AS, do I need to download the Java 11 SDK and configure AS to point to it? Thanks

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

    Please, could you make a video on how to record screen

  • @gvharish9894
    @gvharish9894 7 หลายเดือนก่อน +4

    in my case i'm using hilt 2.44 and it show errors on 1.8 if update to latest version java 17 no issues works fine

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

      Yep, one of the cases where you need to understand what this is for

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

    I always change it to version 17 whenever i use dagger hilt...? I forgot.

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

    thanks. how to set version 17 or 11 to be the default one, before creating the app,?

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

      need to manually change it from the settings

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

    Just what I needed, thanks for this.

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

    What's the risk if an app is on java 17 but not the libraries the app uses?

    • @Nemesislh
      @Nemesislh 7 หลายเดือนก่อน +3

      that should not be a problem since it is back compatible.

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

    What is the name of the outro song?

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

    I though, you were to show as fix the error, because sometimes I create the project and this show the error, before, the way how i had been fixing was with change 1_8 by 17, but I don't know if its bad

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

    Can you please make a video on search bar/ docked search bar

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

      You can also Google it

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

    Need to change the thumbnail!

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

    Great but there is no logic on how to pick the right versions. Why isn't Android Studio intelligent enough to restrict what I pick for Gradle JDK. I mean the drop-down list should only include they versions that don't result in mismatch errors. That's the worst thing I find in doing Android Development. I know there must be a reason why no logic is there. A lot of trial and error needed..

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

    brain damage happening, Philip,
    jaba-jaba-jab-compatible-source-jaba-jaba happening.

  • @isakthehackervlogs
    @isakthehackervlogs 7 หลายเดือนก่อน +14

    The thumbnail contradicts your entire video, so clickbaity

    • @PhilippLackner
      @PhilippLackner  7 หลายเดือนก่อน +9

      In how far does it contradict the video? It's a fact that these fields often lead to build errors and this video explains why

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

      I kinda think it doesn't. It was just yesterday when I was going through the internet because of such an issue and mixing those gave me the error.

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

      I've had compile errors specifically connected to this issue. And I wouldn't call the thumbnail click baity. It's actually just kind of funny. It says "danger error prone" about something that is kind of error prone, and then the guy is sitting there covering his mouth for a small cough like, "ahem" 😂

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

      Oh... Unless he's using the varying thumbnail feature thing 😐

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

    I can see you starting to prefer benifets to your own self and money over your viewer confidence, I really like you but I hope that you will start to look out for someone other than yourself, plesae don't tell me you creating videos and help others and I won't explain what I mean because most people will not get it, in fact I'm the bad guy

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

    Free Palestine

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

    Thank you

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

    Java king of programming language