Creating Your First Hello World KMM App (Kotlin Multiplatform Mobile) - KMM for Beginners

  Рет қаралды 99,860

Philipp Lackner

Philipp Lackner

Жыл бұрын

In this first video of this KMM playlist, I'll show you how you can setup KMM to work on your machine. We'll then create a hello world app and I'll show you how you can run it on both Android and iOS.
⭐ Get certificates for your future job
⭐ Save countless hours of time
⭐ 100% money back guarantee for 30 days
⭐ Become a professional Android developer now:
pl-coding.com/premium-courses...
💻 Let me personally review your code and provide individual feedback, so it won't backfire and cost you a fortune in future:
elopage.com/s/philipplackner/...
Subscribe to my FREE newsletter for regular Android, Kotlin & Architecture advice!
pl-coding.com/newsletter
Join this channel to get access to perks:
/ @philipplackner
Join my Discord server:
/ discord
Regular programming advice on my Instagram page: / _philipplackner_
Checkout my GitHub: github.com/philipplackner
You like my free content? Here you can buy me a coffee:
www.buymeacoffee.com/philippl...

Пікірлер: 212
@arturolatorre371
@arturolatorre371 Жыл бұрын
This series is gonna be the bomb! I'm all in! Thank you Philipp ❤
@osisuper98
@osisuper98 Жыл бұрын
Thank you Philipp! We can’t wait to follow through your KMM series and learn cross platform with you.
@davidrauca
@davidrauca Жыл бұрын
Hey Philipp, Great work with all of these videos. Keep doing that! It would be nice to see a tutorial in which the KMM part is a library imported in existing Android & iOS projects. I think that would be very interesting and helpful!
@sameershelar2000
@sameershelar2000 Жыл бұрын
Great for me, I just started learning KMM so that I can work on a project at my org. Please release more videos in this playlist.
@TheTuxtrons
@TheTuxtrons Жыл бұрын
I deliver my first project as a freelancer past week, couldn't take the second one cause client require also an iOs app. This came in perfect time.
@afixithei.V
@afixithei.V Жыл бұрын
Wow... I haven't given KMM a try before but I so much love the logic behind it. I currently want to build a chat app with it and in the process will learn Swift
@EmanNollase
@EmanNollase Жыл бұрын
thanks Philipp! this is just in time. i am also exploring KMM. btw, i am a android and ios native developer. But i was grateful for your videos about jetpack compose. thanks again!
@osisuper98
@osisuper98 Жыл бұрын
How easy is it to go native on both platforms? Would you recommend it or it’s just better to use KMM for anything iOS related? I am a native Android developer who loves Kotlin and Java so much. The issue is I am quite unsure about choosing between learning iOS native or just sticking with KMM.
@EmanNollase
@EmanNollase Жыл бұрын
@@osisuper98 when developing app using KMM, you should have at least a basic knowledge of iOS native or learn iOS development. Because it defeats the purpose of KMM if you want to develop the app on android only. Might as well do a regular android project.
@MCStarYT
@MCStarYT Жыл бұрын
Great introductory video. Can't wait for the next one. Keep up the good work 👏
@ezefrancatube
@ezefrancatube Жыл бұрын
Thank you for your video. It's more updated than official Kotlin docs.
@aakashr79
@aakashr79 Жыл бұрын
Hey Phillip. An OG supporter of your content here. A video on building a KMM library would be sooo massive. This is the best time to be getting into sdk dev for KMM where devs could be adding huge value for the future. A production level tutorial for a library would definitely be a first on KZfaq and soooo helpful. Hope this reaches you and we see a video on that soon. Cheers!
@danilodequeiroz9520
@danilodequeiroz9520 Жыл бұрын
👍
@anudeepananth
@anudeepananth Жыл бұрын
Cant tell you how incredibly excited I am for this....
@anonymousgaming1194
@anonymousgaming1194 Жыл бұрын
Perfect timing! Thanks and looking forward to it.
@original_anu
@original_anu Жыл бұрын
Great stuff. I'm very excited for this series
@devOmarAZ
@devOmarAZ Жыл бұрын
We are all waiting. Thx Philipp ♥
@thierrynkubito8580
@thierrynkubito8580 Жыл бұрын
I've have learned a lot of of skills from you. be blessed and keep moving forward.
@smreha
@smreha Жыл бұрын
I am so glad that JetBrains have improved the tooling. Look forward for more videos.
@chegekamau3870
@chegekamau3870 Жыл бұрын
Thanks a lot, have been waiting for this.
@Sc2MooDy
@Sc2MooDy Жыл бұрын
Really interested in KMM, please continue with the playlist 🥰
@theophilus494
@theophilus494 Жыл бұрын
thank you soooooooooooooooo much... at least hope is rising gradually.. cos that's one of the reason I embraced Kotlin
@ahmednashwan8111
@ahmednashwan8111 Жыл бұрын
😍😍😍😍 please continue I am very happy to see that.
@TheThornTech
@TheThornTech Жыл бұрын
Thank you so much! I'm waiting for the next lesson.
@DevRodMastria
@DevRodMastria Жыл бұрын
Great video! I'm also a KZfaqr so I would recommend you to edit the closed captions via KZfaq Studio > Content > video Details > Subtitles > Duplicate and Edit the Automatic Subtitles > Edit incorrect words like Japan vs Jetpack > Publish > Thanks for the excellent video!
@tmjromao
@tmjromao Жыл бұрын
Excelent Philipp! Will try to follow your insightnments and put mac mini to use :)
@vedx
@vedx Жыл бұрын
Finally the wait is over ♥️
@akashkumardas6521
@akashkumardas6521 Жыл бұрын
Thank you so much, you just make it simple.
@mr.getrighhttt3433
@mr.getrighhttt3433 Жыл бұрын
I wonder how many times you have said “actually” in this video. Lol great tutorial btw. I Have to create a KMM project for my job, and this helped. Thanks.
@baijusharma6027
@baijusharma6027 Жыл бұрын
That's going to be very interesting 👏👏👏👏
@ngolian
@ngolian Жыл бұрын
Thanks for all your excellent videos. I'm really looking forward to watching the rest of this series. However, I think cocoapods is going to be a problem. I can't get cocoapods-generate installed, it's just dependency hell. I've had much better experiences with Swift Packages (SPM), and there seems to be a general trend of deprecating cocoapods in favour of SPM. There are some plugins to integrate SPM into KMM, so I'll be trying those instead. Perhaps you could investigate that and make some videos about it? I think that would be helpful to anyone interested in this series.
@John-qt6qk
@John-qt6qk Жыл бұрын
This is Awesome 💪🏾
@nadilyt
@nadilyt Жыл бұрын
waiting over 😁
@sovrinfo
@sovrinfo Жыл бұрын
Thanks! Cool video!
@Soulcybering
@Soulcybering Жыл бұрын
KMM is so interesting. Sharing viemodels is the most difficult and interesting topic. I just hope that compose ui will be released soon with iOS support
@ChrisAthanas
@ChrisAthanas Жыл бұрын
Dont hold you breath.... Apple is being very stubborn about any kind of cross platform tooling. They are literally like Internet Explorer from Microsoft from 2000-2016
@mahmoudh3sham
@mahmoudh3sham Жыл бұрын
Awesome Keep it up ♥
@denizbutandroid
@denizbutandroid Жыл бұрын
exciting!
@myselferbumba
@myselferbumba Жыл бұрын
Wow! Nice 👌🏿
@flowzk921
@flowzk921 Жыл бұрын
Awesome!
@trocchiettoski
@trocchiettoski Жыл бұрын
Really Happy you did this video. When the best Android coach in the world does this video the community think over (with the time) on making KMM better, and we will see compose IOS as flutter with a dedicated library
@SaifaldeenSAH
@SaifaldeenSAH Жыл бұрын
So good video of KMM thanks
@yashjani99
@yashjani99 Жыл бұрын
first!! but at office, will learn this later when i get back home 😅👌
@MatiasTesio
@MatiasTesio Ай бұрын
Thank you for the video Phillip! Can you do a video about how to create and publish a KMP library that we can then use in an existing Android and iOS native apps? Thanks!
@amirrezaashouri
@amirrezaashouri Жыл бұрын
What a magical timing !!! Thanks a lot for the KMM series. I'm currently working on a big project which we want to migrate the business logic and data logic (if it's possible even VMs) into a KMM shared module, I would appreciate if you could dedicate an episode for implementing KMM with existing projects (android and iOS).
@salvadorjohndeniel
@salvadorjohndeniel Жыл бұрын
Me too it's for my thesis 😅
@maskedredstonerproz
@maskedredstonerproz Жыл бұрын
seeing as how viewmodels usually contain conpose states, that might be...difficult, you'd have to have a dedicated viewmodel for the logic, and one for the compose states, something like MainViewModel for the logic(the one you will share), and a MainStateViewModel(the one for compose state you won't share), I personally think that's too much effort for no benefit because viewmodels are more associated with the ui than anything, and ui is something you don't share, besides, viewmodels tend to be specific to the way things are shown in the ui, which may not be the same on every platform
@David-im1fp
@David-im1fp Жыл бұрын
Thanks for great video. I have been using windows for java development. For using android studio with kotlin and intellij IDE, which os (iOS or windows) should I choose for a new computer? Do these IDEs run on iOS as good as on windows? Thanks for advice.
@mustafaammar551
@mustafaammar551 Жыл бұрын
Very Cool 👍👍👍👍
@gofudgeyourselves9024
@gofudgeyourselves9024 Жыл бұрын
Brilliant
@user-dn1ep2kb4o
@user-dn1ep2kb4o Жыл бұрын
Thank you so much
@argahutama
@argahutama Жыл бұрын
Cool!
@realcrys
@realcrys Жыл бұрын
I had the brilliant idea of using a - in my shared module name :D That was the only hiccup. - translates to _ in the Swift import
@siracseyidov1597
@siracseyidov1597 Жыл бұрын
Waitong for next part
@siracseyidov1597
@siracseyidov1597 Жыл бұрын
So Cool
@rileyfarro6801
@rileyfarro6801 Жыл бұрын
Finally!!!!
@sumit180288
@sumit180288 Жыл бұрын
Flutter is a better choice
@thealikilic
@thealikilic 4 ай бұрын
for now
@moldovanpeter5123
@moldovanpeter5123 Жыл бұрын
Will you add also KotlinRedux? or it will be basic KMM tutorials?
@mohamedsanoob.k1116
@mohamedsanoob.k1116 Жыл бұрын
❤️❤️🔥
@karthikgaddam1146
@karthikgaddam1146 Жыл бұрын
I request you to please maintain a playlist will be very useful for later. Thanks in advance.
@PhilippLackner
@PhilippLackner Жыл бұрын
There is already one I created :)
@markdelphi8075
@markdelphi8075 7 ай бұрын
Thank you. Is that better than Swift for iOS app Development? Thanks again.
@tahirdevlog2047
@tahirdevlog2047 Жыл бұрын
thank you
@LaughTale1993
@LaughTale1993 Жыл бұрын
Hey Philipp, i am new with Kotlin i was wondered if its possible build a full functional app using only kotlin programming language...if possible as kotlin multiplatform mobile application...thanks
@drummerviswa
@drummerviswa Жыл бұрын
Hi Phillip, Can you please make a crash course from scratch about Android development through kotlin
@abdallawanjusi
@abdallawanjusi Жыл бұрын
Kdoctors says I need to run first build with xcode. Done that but I don't seem to get a pass in kdoctor
@gabrielbronzattimoro7953
@gabrielbronzattimoro7953 8 ай бұрын
That is awesome my friend! Thanks for sharing!
@kamertonaudiophileplayer847
@kamertonaudiophileplayer847 Жыл бұрын
I have an Android project with library written in Java. Should I convert the Java libraries to Kotlin before run the project on iOS?
@mikeshilovski1512
@mikeshilovski1512 Жыл бұрын
At work we have 3 kmm projects and it's pain in the *** supporting it, and it still requires 2 developers to work on it. But I heard now ios part can be written in compose which is probably going to make it much easier
@yossimaskin1393
@yossimaskin1393 Жыл бұрын
Would you focus on the Swift UI part on this Playlist? I think it's the powerful part of KMM but also a big disadvantage for Android or IOS developers to stay up to date with all the newest things of Jetpack compose and Swift UI
@vibovitold
@vibovitold Жыл бұрын
How is SwitfUI a part of KMM?
@daviderwin2808
@daviderwin2808 Жыл бұрын
Hey general question here, what is the best way to go about testing my iOS app if im on windows 10
@SiamakAshrafi
@SiamakAshrafi Жыл бұрын
XCode 15 review does not have UIKit so, cocopods is old .... not sure if this is a good idea for the future. We build with Swift / SwiftUI / Swift structured concurrency / Swift package manager and know our iOS app will always be supported ...
@charlitowashere5906
@charlitowashere5906 Жыл бұрын
do you think this will become a standard?? like some big companies launching huge apps for both platforms using KMM? competing with flutter? sounds amazing..
@krystianwiewior8725
@krystianwiewior8725 Жыл бұрын
It could be. KMM is improved. Flutter is very popular nowadays and it is really easy to build in both. One code.
@anudeepananth
@anudeepananth Жыл бұрын
Hey Philipp, does jetpack compose lazy column support data from sql delight?
@PhilippLackner
@PhilippLackner Жыл бұрын
Sure 😅
@NithinVargheseChalakkal
@NithinVargheseChalakkal Жыл бұрын
thanks for the video ❤️ KMM or RN or FLUTTR ? Which one will be the preferred one in future? Jus a thought 💭
@moldovanpeter5123
@moldovanpeter5123 Жыл бұрын
Each have their own pros and cons :) do a research about this topic, and don't forget Xamarin which is still a thing but lacks devs and a good community.
@deviantstudio
@deviantstudio Жыл бұрын
we did such research a year ago and chose kmm. never regret. btw we even didn't consider RN as an option. it's not relevant in 2022
@NithinVargheseChalakkal
@NithinVargheseChalakkal Жыл бұрын
Seems like many companies moved to RN. Hope Kotlin will come back with KMM in future with support of 🍏.
@skydandelion2560
@skydandelion2560 Жыл бұрын
What about job market for these implementation? Do you have any idea?
@kevinwestrom4775
@kevinwestrom4775 22 күн бұрын
Is there a similar tool to Brew/Homebrew for the Windows OS?
@k4ba
@k4ba Жыл бұрын
There is hope for Kotlin against Dart and Flutter multi platform. So far I like more Flutter, I wish we had Kotlin instead of Dart :c
@figurich
@figurich Жыл бұрын
I would like to see one day jetpack compose or swiftui can do web app perfect. Why bother too much between too very different company's native private garden? Most of the big app have their own shared cloud backend, so the ui part is the most cumbersome.
@testchannel3103
@testchannel3103 Жыл бұрын
plz make video on sync adapter with roomdatabase
@4ytonly
@4ytonly Жыл бұрын
Wait! Does this mean, you can code swift in android studio????????
@ahmadiyoussef2121
@ahmadiyoussef2121 Жыл бұрын
good joob
@deviantstudio
@deviantstudio Жыл бұрын
KMM and compose multiplatform is the future!
@redhotbits
@redhotbits Жыл бұрын
future of garbage maybe
@zhanyshmasirov4611
@zhanyshmasirov4611 Жыл бұрын
Hallo Philipp konntest du mir bitte antworten, damit KMM app machen die laptop muss MacBook Sein? weil, wir sind benutzen Ios auch , sondern Ios geht nicht mit windows systesm. Konntest du antworten damit, herzlichen Danke dir zu vor
@Dragonboh1
@Dragonboh1 Жыл бұрын
for me kdoctor on my mac don't see plugins. It tell me that everything is ok but i don't have kmm plugin installed
@HamidZaeri
@HamidZaeri Жыл бұрын
Hi May I ask how much was apk file size and ipa file also?
@rohanr4783
@rohanr4783 Жыл бұрын
Brother can you please teach how to install Mac OS in windows so we can use it to develop apps ios and android
@leroyiunix8948
@leroyiunix8948 Жыл бұрын
look for hackingtosh
@MrPool-yu6op
@MrPool-yu6op 25 күн бұрын
Is it possible to use KMM in Intellij Ultimate for Windows?
@DevlogBill
@DevlogBill Жыл бұрын
I've coded in the past, almost 1 year now with JavaScript. Do you have a video which explains in detail how to resolve issues when trying to run Koltin? I downloaded Android Studios as well as JetBrains intelliJ. I can't get none of them to run my Kotlin code, maybe I am creating the wrong file? I selected the console version. I even tried to run Kotlin on Visual Studio Code. I created a file called main.kt and after I created my main function and tried to run the code. I got an error message, "kotlinc: command not found" I am assuming that VS-Code is unable to compile the code?
@jorgegasparramirezsegura3266
@jorgegasparramirezsegura3266 Ай бұрын
Thank you Philipp but I got this error when I try to run on IOS PhaseScriptExecution failed with a nonzero exit code
@TheCodingRaconteur
@TheCodingRaconteur Жыл бұрын
I got this error when running kdoctor: Xcode requires to perform the First Launch tasks. I am not sure why though and I have accepted all licenses for xcode.
@soothingsounds6866
@soothingsounds6866 Жыл бұрын
Anyone know how to use the splashscreen api in kmm? I think that this can be an excellent tutorial as I can't fin that anywhere.
@abhisheksaxena8331
@abhisheksaxena8331 Жыл бұрын
is there a way to use firebase realtime database in KMM?
@nitinnegi9343
@nitinnegi9343 Жыл бұрын
Hey I am getting this error -> ✖ Xcode requires to perform the First Launch tasks Launch Xcode or execute 'xcodebuild -runFirstLaunch' in terminal. Any help?
@user-wf3lt4ew6p
@user-wf3lt4ew6p Жыл бұрын
Try this: • open Xcode • Preferenes -> Locations -> Command Line Tools • select Xcode in dropdown
@stankodujakovic3935
@stankodujakovic3935 Жыл бұрын
I've got a problem with cocoapods, had to instal ruby 2.7, but didn't solve the problem. Now i have ruby 2.7 installed but still getting the error that i have to install it
@TheFabiaWRC
@TheFabiaWRC Жыл бұрын
Same problem…
@julianasouza9158
@julianasouza9158 Жыл бұрын
You need to rollback the version of your xcode or try to do some script in rosseta terminal
@stankodujakovic3935
@stankodujakovic3935 Жыл бұрын
Turned out that i had to use -rvm use 2.7.2
@ArturoDevA
@ArturoDevA Жыл бұрын
@@stankodujakovic3935 how solved? command please
@SpaceTimeBeing_
@SpaceTimeBeing_ Жыл бұрын
You can build this on any os if you only care about the android side. Not just windows.
@original_anu
@original_anu Жыл бұрын
If I have an android app already built with Compose, does it make sense to use KMM to create the ios version?
@PhilippLackner
@PhilippLackner Жыл бұрын
Sure
@harik5591
@harik5591 Жыл бұрын
I was using xcode14.0.1 and macos Monterey; when I run kdoctor, I get the message: * Xcode requires to perform the First Launch tasks Launch Xcode or execute 'xcodebuild -runFirstLaunch' in terminal However, I have launched the xcode and ran the startup app; I still get the same message; i can. not find xcodebuuild on my mac ...
@user-wf3lt4ew6p
@user-wf3lt4ew6p Жыл бұрын
Try this: • open Xcode • Preferenes -> Locations -> Command Line Tools • select Xcode in dropdown
@Denis-gf6iq
@Denis-gf6iq Жыл бұрын
Yep all nice and good and thank you for the video, but in terms of cross platform anything beyond Hello World and or getting stuff from the web and displaying it on screen, any hardware integration like Bluetooth will quickly transform these cross platform projects into a huge pain. Native all the way.
@PhilippLackner
@PhilippLackner Жыл бұрын
KMM is pretty much native but you need less code to write it. You have 2 separate code bases for native specific things that don't affect each
@kamaldubey3382
@kamaldubey3382 Жыл бұрын
can I do KMM project in android studio and give it a run in an ios device ? Will it work ?
@btarg1
@btarg1 Жыл бұрын
Using Java to make iOS apps seems like it would really ease development
@anon3118
@anon3118 Жыл бұрын
is it possible to use flutter for UI layer and KMM for data layer?
@andikitta9480
@andikitta9480 Жыл бұрын
No, its kotlin exclusive
@aimranovlogs4153
@aimranovlogs4153 Жыл бұрын
More videos please
@ak9tgaming714
@ak9tgaming714 3 ай бұрын
Experienced folks, you can skip to the part 05:06 to get started with KMM.
@RubabAzim
@RubabAzim Жыл бұрын
how to upload ktor server side image file on database by post and retive by get.
@ahmedshakr7802
@ahmedshakr7802 Жыл бұрын
Please complete the series of lessons
@orangasli2943
@orangasli2943 Жыл бұрын
Bro.. I am very sad why is my context is null inside RecyclerView in android studio
Exploring the KMM Project Structure - KMM for Beginners
14:27
Philipp Lackner
Рет қаралды 27 М.
🤔Какой Орган самый длинный ? #shorts
00:42
Survival skills: A great idea with duct tape #survival #lifehacks #camping
00:27
The child was abused by the clown#Short #Officer Rabbit #angel
00:55
兔子警官
Рет қаралды 25 МЛН
How to Build a Clean Architecture CRUD Note App Using KMM (Android + iOS)
3:05:08
Releasing Faster with Kotlin Multiplatform
32:24
Gradle
Рет қаралды 10 М.
What Is Kotlin Multiplatform And How Does It Work? - KMP for Beginners
10:17
Should You Learn Native or Cross-Platform Mobile Development?
10:32
Kenny Gunderman
Рет қаралды 77 М.
What's new in Android development tools
43:40
Android Developers
Рет қаралды 33 М.
10 Reasons to Try Kotlin Multiplatform • Pamela Hill • GOTO 2023
48:45
How ChatGPT Built My App in Minutes 🤯
8:28
Website Learners
Рет қаралды 2,1 МЛН
🤔Какой Орган самый длинный ? #shorts
00:42