Kotlin Multiplatform Windows Quick Start You have two main options for your project. The easiest and current recommended is the Android Studio plugin . You can also use the JetBrains Web Template, but that is a little more complex. Both methods work if upgrading to AGP 9 via the wizard. Your project will compile and run, but you do need to make some changes for the future. See the update section below. Note: You can only compile iOS builds on an iOS machine . I believe you can get around this by compiling using Github Actions , but I have not tried this myself. Updated 2026-02-03 When AGP 9.0.0 was first release, starting a new project in the current version of Android Studio Otter 3 and then updating led to a lot of problems! A few days after that, they fixed something with the Android studio template / the upgrade procedure so your project will now build and run correctly. PL Coding made a video about this before this fix was implemented ...
Otter 3 Project Config Just a short post for those upgrading their Android project/s. With the release of Android Studio Otter 3 on January 15th, we also got an AGP upgrade to 9.0.0 Important Note As well as the deprecations, there seem to be a bunch of issues with AGP 9. If you want to start a new KMP project, please see my older post that explains how to create a project using a downloadable web template (official) . This also contains a link to a PL coding video explaining how to update existing projects. Other useful links: My KMP AGP 9.0.0 Migration Walkthrough AGP 9.0.0 release notes This blog post gives one persons experience and workarounds. KMP Migration Notes ✨ AI Blog Post Summary Built-in Kotlin Support: AGP 9.0 now has native Kotlin support. You no longer need to apply the kotlin-android plugin; instead, you should remove it to avoid conflicts. New Android-KMP Plugin: A new, specialized plugin (com.android.kotlin.multiplatform.library) is introduced...
Introduction Below, we will look at the standard way to store preference data (or other small amounts). In Part 2 live) , we move on to how to improve it. Part 1 of this guide is a good refresher for Android Compose users, especially those that haven't needed to use DataStore recently/yet and perhaps have been using SharedPreferences. Full code listings are provided below so everything should work without needing any special information. For newer programmers, this should serve as a good introduction and an easy way to get this up and running fast. I actually found it quite hard to find a full minimal working example of a Repository , ViewModel , and UI online so I am hoping this fills a niche. Part 2 is aimed at intermediate to advanced users and should provide some useful ideas on how to improve things. Recommended System Rather than try to explain everything about DataStore and SharedPreferences (like a thousand other blogs and tutorials), I'll start with a very s...
Comments
Post a Comment