JDK, Android Studio และปลั๊กอิน KMP
เครื่องมือที่ต้องมีก่อนเขียนโค้ดที่แชร์แม้แต่บรรทัดเดียว
JDK, Android Studio และปลั๊กอิน KMP เป็นบทเรียน Kotlin Multiplatform Academy ฟรีบน CoddyKit นี่คือบทเรียนที่ 1 จากทั้งหมด 4 บทเรียน คุณสามารถอ่านบทเรียนทั้งหมดด้านล่างฟรี — จากนั้นลองปฏิบัติด้วยตัวคุณเองในเบราว์เซอร์พร้อมตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7 บทเรียนนี้เป็นส่วนหนึ่งของเส้นทางการเรียน Kotlin Multiplatform Academy และความก้าวหน้าของคุณจะซิงค์ข้ามเว็บและแอป CoddyKit คอร์ส Kotlin Multiplatform Academy มีบทเรียนทั้งหมด 4 บทเรียน
บางส่วนของบทเรียนนี้ยังไม่ได้รับการแปล และแสดงเป็นภาษาอังกฤษ
Tools Before Code
Before you write a single shared line, you need the right toolchain. Get this setup right and the rest of KMP feels smooth. 🛠️
Start With the JDK
Everything starts with the JDK, the Java Development Kit that compiles and runs your Kotlin code on the JVM side.
Which JDK Version
Pick a modern JDK 17 or newer. It is the safe, well-supported baseline that current Android and Gradle tooling expect.
Check Your Java
Open a terminal and confirm Java is installed and visible. One command tells you the version your machine will use.
java -versionAndroid Studio Is Home Base
Your main workshop is Android Studio, the IDE where you will edit shared code, run the Android app, and manage Gradle.
Use a Recent Studio
Install a recent stable Android Studio. Newer releases ship better Kotlin support and smoother multiplatform tooling out of the box.
The KMP Plugin
Add the Kotlin Multiplatform plugin from the plugins marketplace. It unlocks the project wizard and KMP-aware editing features.
Where Plugins Live
Find it under Settings then Plugins, search Marketplace for the multiplatform tooling, install, and restart Studio to activate it.
Android SDK Comes Too
Studio also installs the Android SDK, the platform libraries and build tools your Android target compiles against.
An Emulator to Test On
Create an Android emulator from the Device Manager so you can run and see your shared code working without a physical phone.
This Covers Android Only
So far you can build the Android half of KMP. The iOS side needs Mac-specific tools you will set up in the next lesson.
Quick Check
Which JDK version is the recommended safe baseline for modern KMP?
Recap
You lined up the essentials: a JDK 17+, Android Studio with the KMP plugin, the Android SDK, and an emulator. The Android side is ready. ✅
คำถามที่พบบ่อย
บทเรียน “JDK, Android Studio และปลั๊กอิน KMP” ฟรีหรือไม่
ใช่ — ข้อความเต็มของ “JDK, Android Studio และปลั๊กอิน KMP” ฟรีให้อ่านที่นี่บนเว็บ เพื่อปฏิบัติแบบโต้ตอบ (ตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7) และปลดล็อคส่วนที่เหลือของคอร์ส Kotlin Multiplatform Academy ให้อัปเกรดเป็น CoddyKit PRO คอร์ส Kotlin Multiplatform Academy มีบทเรียนทั้งหมด 4 บทเรียน
คุณจะเรียนรู้อะไรในบทเรียน “JDK, Android Studio และปลั๊กอิน KMP”
เครื่องมือที่ต้องมีก่อนเขียนโค้ดที่แชร์แม้แต่บรรทัดเดียว คุณปฏิบัติ Kotlin Multiplatform Academy ด้วยโค้ดที่ใช้งานได้จริงที่คุณเรียกใช้โดยตรงในเบราว์เซอร์ และติวเตอร์ AI ตลอด 24/7 ตอบคำถามของคุณขณะที่คุณไปผ่านบทเรียน
คุณต้องมีประสบการณ์ก่อนที่จะเริ่มเรียน Kotlin Multiplatform Academy หรือไม่
ไม่จำเป็นต้องมีประสบการณ์มาก่อน Kotlin Multiplatform Academy บน CoddyKit ออกแบบมาสำหรับผู้เริ่มต้นไปจนถึงผู้เรียนขั้นสูง คุณสามารถเริ่มต้นที่นี่หรือเริ่มจากตัวแรกและเรียนด้วยความเร็วของคุณเอง นี่คือบทเรียนที่ 1 จากทั้งหมด 4 บทเรียน
บทเรียน “JDK, Android Studio และปลั๊กอิน KMP” ใช้เวลานานแค่ไหน
บทเรียน CoddyKit ส่วนใหญ่ใช้เวลาประมาณ 5–10 นาที แต่ละบทเรียนจึงสั้นและเป็นแบบโต้ตอบ คุณสามารถก้าวหน้าอย่างต่อเนื่องและกลับมาเรียนต่อจากตรงที่เพิ่งหยุดบนเว็บและแอปได้เลย
ฉันเขียนและรันโค้ดในบทเรียน Kotlin Multiplatform Academy นี้ได้ไหม
ได้ บทเรียน Kotlin Multiplatform Academy ทุกบทมีตัวแก้ไขโค้ดในตัว คุณจึงเขียนและรันโค้ดจริงได้เลยในเบราว์เซอร์ และได้รับข้อเสนอแนะจาก AI ในทันที — ไม่ต้องติดตั้งในเครื่องของคุณ
บทเรียนทั้งหมดในหลักสูตรนี้
- JDK, Android Studio และปลั๊กอิน KMP
- Xcode และ CocoaPods สำหรับฝั่ง iOS
- สร้างโปรเจกต์ด้วยตัวช่วยสร้าง KMP
- สำรวจโฟลเดอร์ที่สร้างขึ้น