THIS New Tool Strongly Speeds Up Your Gradle Builds

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 71

  • @shekhar1038
    @shekhar1038 7 месяцев назад +1

    The source to check the compatible version of Kotlin supporting ksp version makes this video still useful 👍

  • @tonnie7079
    @tonnie7079 Год назад +5

    I love the workings you have provided, I followed the steps to migrate ksp for room/dagger successfully. Thanks for always keeping us ahead in the Android Game.

  • @Zeeshan-Syed
    @Zeeshan-Syed Год назад +26

    ❗Heads-up❗:
    Make sure you declare the ksp plugin in root gradle but apply in app gradle.
    If you don't declare it in root, you'll run into gradle issues.

    • @tonnie7079
      @tonnie7079 Год назад +3

      True, I had issues but when I moved it project module it worked fine

    • @richardatherton5229
      @richardatherton5229 Год назад

      can you help? I just can't get it to run. I am using Android Studio Hedgehog. How do I "eclare the ksp plugin in root gradle but apply in app gradle"...thanks!

  • @PaweSzymanski-gk7po
    @PaweSzymanski-gk7po Год назад +13

    Yeeey! Finally KSP is supported by Dagger-Hitl! 🥳

    • @digipifini
      @digipifini Год назад

      Yep, dagger-hilt 2.47 was what made me stick with kapt

  • @reksafitrananda7704
    @reksafitrananda7704 Год назад +3

    android development is getting better and faster

  • @_angel_mohammadi3952
    @_angel_mohammadi3952 Год назад +2

    Thanks a lot. You're one of the best Android teachers!❤

  • @jimpauloovejera2599
    @jimpauloovejera2599 Год назад +10

    it would've been much better if you had display both kapt and ksp's build times

    • @PhilippLackner
      @PhilippLackner  Год назад +6

      It's a free improvement without any downsides, I don't think it matters how much faster the build is as long as it is faster 😄

  • @phuang3
    @phuang3 Год назад +3

    Thanks. Just few weeks ago I tried KSP but it seems it has problems with Dagger Hilt. There was warning saying something was not recognized. I'm glad that latest Dagger Hilt supports KSP.

    • @phuang3
      @phuang3 Год назад

      @houssemzaier Hi, does the compose support Kotlin 1.9.0? I remembered I have to downgrade to 1.8.10

    • @sudarshanbhatt9435
      @sudarshanbhatt9435 Год назад +1

      @phuang3 ye compose support 1.9

    • @phuang3
      @phuang3 Год назад

      @@sudarshanbhatt9435 Tried kotlin 1.9.10 and KSP today. Too bad KSP doesn't support databinding anymore, so I have to include the kapt again...

    • @MegaRockandroll09
      @MegaRockandroll09 Год назад

      @houssemzaier testing with hilt fails. any solution?

  • @kalibra2121
    @kalibra2121 Год назад +3

    @Philipp let's say you want to keep databinding or something that doesn't support KSP yet, if we use Kapt for those and KSP for Room and Hilt, do we get some improvements in build times? or we only get faster builds if we give up on Kapt entirely?

    • @MegaRockandroll09
      @MegaRockandroll09 Год назад

      complete ksp is faster as compiler don't have to wait for java stubs generation. if you use both then you won't get any significant changes to build time.

    • @hungnguyenmanh991
      @hungnguyenmanh991 Год назад

      Google encourages the compose practices so they won't implement databinding to ksp.

  • @SilasOhee
    @SilasOhee Год назад

    Yup, Why does your face always appear in the recommendation list, you have the solution to the problem I'm facing... Thank you very much.

  • @EnelAlmonte
    @EnelAlmonte Год назад

    @Philipp why you changed to compileOptions {
    sourceCompatibility = JavaVersion.VERSION_18
    Should I consider move away from JavaVersion.VERSION_1_8?

  • @animehub883
    @animehub883 7 месяцев назад

    you did good , the only downside is that the version for the hilt compiler and plugin is now 2.50 and the need of jvm in the project gradle file for it to work

  • @zoltanbalazskozma2360
    @zoltanbalazskozma2360 Год назад

    Are you using a beta or canary version of Android Studio? On the latest stable version AGP 8.2.xx is not supported like you show here.

  • @MegaRockandroll09
    @MegaRockandroll09 Год назад +1

    Do you have any issues with hilt testing? I'm getting lots of error. I guess since this is the first supported version there are many issues with testing.

  • @druom69
    @druom69 8 месяцев назад

    Thank you Philipp!

  • @OrlanDroyd
    @OrlanDroyd Год назад

    Always up to date!

  • @androidkotlin-6234
    @androidkotlin-6234 Год назад

    Why when we adding ksp at top level gradle in the end we marked it like apply false?

  • @chiragredij1734
    @chiragredij1734 Год назад

    Hey phillip, So I am using kotlin compiler version 1.9.10 and everything with KSP and other dependencies are set but when I try to implement Hilt dependencies just the ones you used here Im met with error "Unsupported class file major version 63"... Im using Hilt version 2.48.1

  • @aliveli2941
    @aliveli2941 Год назад

    how can we use KSP and Navigation component together? I get that error below;
    Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath'.

  • @JeffreyLiu8
    @JeffreyLiu8 Год назад +1

    i tried it and it work for debug, bug release build has minify issue.

  • @patriciorodriguez6678
    @patriciorodriguez6678 Год назад

    Thank you very much! Very interesting

  • @sergeilebedev7725
    @sergeilebedev7725 Год назад

    this is did not work in my project. I had a problem with ksp failed in room to find some types of the properties. I think it is because i use classes generated by GraphQL Apollo library.

  • @safionweb
    @safionweb Год назад

    Can we use both in our project? KAPT and KSP?

  • @GeorgeKarlR
    @GeorgeKarlR Год назад

    Can you make an app and publish it with your own server in the computer ? Data is live

  • @ChrisAthanas
    @ChrisAthanas Год назад +2

    4:34 I hope the ai tool will help with this versioning and confusing configuration details some day soon
    It’s a complete nightmare on android and needs to be addressed
    It’s the most annoying thing on android!

  • @OlegGolubev_yolo
    @OlegGolubev_yolo Год назад +1

    thats awesome!

  • @bro_chenzox
    @bro_chenzox Год назад

    One point nine point zero point got point nice point video X)

  • @itgmaster098
    @itgmaster098 11 месяцев назад

    thank you

  • @CodingWithTaaxo
    @CodingWithTaaxo Год назад +11

    Unfortunately if you use ksp with kapt e.g if you're using libraries that don't yet support ksp, then you'll still have slower build times and ksp will be useless at that time

    • @riyupapa39
      @riyupapa39 Год назад

      Kind of retrofit? or else?

    • @martonbraun3213
      @martonbraun3213 Год назад +1

      KSP still isn't useless - the more tools you have on KSP instead of KAPT the better state your build is in. However, it's true that you'll get the greatest improvement if you completely remove KAPT.
      What libraries do you have that still need KAPT?

    • @bidbid5413
      @bidbid5413 Год назад

      Can you use both ksp and kapt?

    • @riyupapa39
      @riyupapa39 Год назад

      @@bidbid5413 Is that possible use both? ( I'm a beginer of KSP )

    • @MegaRockandroll09
      @MegaRockandroll09 Год назад +1

      @@riyupapa39 yes

  • @makix08
    @makix08 Год назад

    Thank you, usefull !

  • @EverythingWithKotlin
    @EverythingWithKotlin Год назад

    Wow hilt support ksp now ..

  • @riyupapa39
    @riyupapa39 Год назад +1

    Very goood !!!!!!!!

  • @nm86nm
    @nm86nm Год назад +1

    Super tip

  • @emreyigit7671
    @emreyigit7671 10 месяцев назад

    I'm getting this error and I couldn't solve it

  • @javimar69
    @javimar69 Год назад +2

    Greetings... If you have databinding, you must keep kapt :-(

    • @ChrisAthanas
      @ChrisAthanas Год назад +2

      Drop xml as soon as possible
      It’s dead

    • @FilipLarssons
      @FilipLarssons Год назад

      Databinding is dead, but the scroll performance of Compose is too bad to fully drop XML @@ChrisAthanas

  • @argahutama
    @argahutama Год назад +1

    cool

  • @nrg4285
    @nrg4285 Год назад

    Just FYI the video and audio is fairly degraded in this exported video... maybe check with your editor

  • @johnibat
    @johnibat 7 месяцев назад

    👍🙏

  • @ER-alkusi-mahato
    @ER-alkusi-mahato Год назад

    Jay goram

  • @shubhamkumargupta3478
    @shubhamkumargupta3478 6 месяцев назад

    I hate ksp many places it is simply not supported properly with unknown error thrown

  • @rogercolque
    @rogercolque Год назад

    cool tool
    very far from my learning.

  • @TVHovna
    @TVHovna Год назад

    Nice, another clickbait. Claiming that it speeds up compilation without providing any examples/results.

    • @PhilippLackner
      @PhilippLackner  Год назад +2

      Read the facts here: developer.android.com/build/migrate-to-ksp
      You don't have to click on the videos :)

    • @ChrisAthanas
      @ChrisAthanas Год назад +1

      Some one needs a nap

    • @schrodingerscat3912
      @schrodingerscat3912 Год назад +1

      sorry @TVHovna but you'll never be a grouchier Android dev than me. I'm the Winnebago Man of Android development

    • @ChrisAthanas
      @ChrisAthanas Год назад +2

      @@schrodingerscat3912 Android dev def brings out the grouchy
      It's a huge pain in the ass

    • @TVHovna
      @TVHovna Год назад

      @@ChrisAthanas sorry guys but it's 101 of optimalization to measure before and after optimalizations are applied :D thumbnail is flashy and says that builds are up to 2 times faster, yet 0 proof or real observation is presented, therefore it is lying/misleading, not backing up serious claims. Do that to a client and you'll make yourself look like a dummy.

  • @easybusinessou
    @easybusinessou Год назад

    convert to KSP is successful , it' really faster

  • @excalibur8147
    @excalibur8147 Год назад

    Still waiting for ksp to support retrofit 🥲

    • @martonbraun3213
      @martonbraun3213 Год назад

      Why does Retrofit need support for KSP? Where do you use codegen with Retrofit?