A simple KMM app

Related tags

Kotlin KMMargherita
Overview

Getting Ready

Install latest Android Studio version (I’m using RC Dolphin).

Make sure your Kotlin Plugin has 1.7.x version.

Screenshot 2022-09-04 at 19 21 46

Make sure you have Ruby gem installed. gem list

Make sure you have Java JDK installed. java --version

To use the Android KMM Wizard Template, first you need to install a KMM plugin and restart AS.

Screenshot 2022-09-03 at 11 53 31

Clone the repository and try opening the starter project. Sync the dependencies:

Screenshot 2022-09-03 at 13 26 34

Build and run the app.

Screenshot 2022-09-03 at 13 27 11

If the emulators starts, then everything is fine.

Screenshot 2022-09-03 at 13 29 33

If you run into a problem, it may be one of these:

If you have a Apple M1 Chip and the next command in terminal returns empty:

echo $LANG

Then in terminal:

open -e ~/.zshrc

And add this line to the opened file:

export LANG=en_US.UTF-8

After saving your .zshrc file, you must run next command:

source ~/.zshrc

If you’re running into Java JDK problem, do the following:

  1. /usr/libexec/java_home -V

Your output should be something like:

18 (arm64) "Oracle Corporation" - "OpenJDK 18" …/Library/Java/JavaVirtualMachines/openjdk-18/Contents/Home 1.8.0_292 (x86_64) "AdoptOpenJDK" - "AdoptOpenJDK 8" /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home

  1. brew install openjdk@11

sudo ln -sfn /opt/homebrew/opt/openjdk@11/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdk

  1. /usr/libexec/java_home -V

Your output should be something like:

18 (arm64) "Oracle Corporation" - "OpenJDK 18" …/Library/Java/JavaVirtualMachines/openjdk-18/Contents/Home 11.0.15 (arm64) "Homebrew" - "OpenJDK 11.0.15" /opt/homebrew/Cellar/openjdk@11/11.0.14.1/libexec/openjdk.jdk/Contents/Home 1.8.0_292 (x86_64) "AdoptOpenJDK" - "AdoptOpenJDK 8" /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home

  1. open ~/.zshrc

In zshrc add and save: export JAVA_HOME=$(/usr/libexec/java_home -v 11.0.15)

  1. export JAVA_HOME='/usr/libexec/java_home -v 11.0.15\'
You might also like...
Simple Kotlin Multiplatform PrayerTimes App for iOS and Android

Kotlin Multiplatform ___ _______ ___ / _ \_______ ___ _____ ___/_ __(_)_ _ ___ ___ / _ | __

An example of a test task for creating a simple currency converter application for the Android platform. The app is developed using Kotlin, MVI, Dagger Hilt, Retrofit, Jetpack Compose.
An example of a test task for creating a simple currency converter application for the Android platform. The app is developed using Kotlin, MVI, Dagger Hilt, Retrofit, Jetpack Compose.

Simple Currency Converter Simple Currency Converter Android App by Isaev Semyon An example of a test task for creating a simple currency converter app

HowsTheWeather - 🌄 Your typical weather app, made really simple.

How's The Weather This is a simple Android app made with the purpose of learning how to access external APIs. It displays the data fetched from this A

GBooks - A simple android app written in Kotlin to read books from the Google Book Api
GBooks - A simple android app written in Kotlin to read books from the Google Book Api

G-Books A simple android app written in Kotlin to read books from the Google Boo

Conversor-de-moeda - A Simple android app with database
Conversor-de-moeda - A Simple android app with database

conversor-de-moeda App simples com banco de dados. Conclusão do BootCamp Carrefo

NoteApp - Simple Note app using Room database and MVVM design pattern
NoteApp - Simple Note app using Room database and MVVM design pattern

General Used Room Database and Followed MVVM Architecture Pattern to build the a

🏞 A simple android app to show random images with Lorem Picsum API.
🏞 A simple android app to show random images with Lorem Picsum API.

LoremPicsum A simple android app to show random images with Lorem Picsum API. Used skills Android Multi-Module RecyclerView MVVM with AAC ViewModel &

This repository contains the article describing my attempt to implement a simple state reducer based on Kotlin Flow and an example app that uses it.
This repository contains the article describing my attempt to implement a simple state reducer based on Kotlin Flow and an example app that uses it.

This repository contains the article describing my attempt to implement a simple state reducer based on Kotlin Flow and an example app that uses it.

Clean architecture based simple app
Clean architecture based simple app

Crypto_currency_tracker A simple crypto currency coin viewer app. User can see all kind of crypto currency rank wise. By clicking one from the list us

Owner
Lena Stepanova
Lena Stepanova
Kamper - a small KMM/KMP library that provides performance monitoring for your app.

?? Kamper Kamper is a KMP/KMM library that implements a unified way to track application performances. The solution is based on plugin design patterns

S. Mellouk 31 Jun 10, 2022
Example KMM app for showing about layered architecture

Layered Architecture in a Kotlin Multiplatform project This project was created by a series of posts you can find on my blog https://jflavio.com The d

Jose Flavio Quispe Irrazábal 13 Oct 10, 2022
Template (pure) for KMM application with DI support

KMM di template Template (pure) for KMM application with DI support. Uses Multiplatform-DI for Dependency Injection Features Common architecture (VIP)

Anna Zharkova 8 Oct 18, 2022
An awesome list that curates the best KMM libraries, tools and more.

Awesome KMM Kotlin Multiplatform Mobile (KMM) is an SDK designed to simplify creating cross-platform mobile applications. With the help of KMM, you ca

Konstantin 994 Dec 28, 2022
Ricky and Morty episode guide using KMM and Apollo GraphQL Native

Ricky And Morty Episodes - Kmm Ricky and Morty episode guide using KMM and Apollo GraphQL Native This is a simple guide on how to create an KMM projec

Julio Ribeiro 2 Apr 15, 2022
use kmm to write a flutter plugin

use KMM to write a flutter plugin The reference plugin_codelab example plugin that accompanies the How to write a Flutter plugin codelab. I changed pl

libill 8 Nov 9, 2022
KMM RSS Reader: an open-source, mobile, cross-platform application built with Kotlin Multiplatform Mobile.

KMM RSS Reader This is an open-source, mobile, cross-platform application built with Kotlin Multiplatform Mobile. It's a simple RSS reader, and you ca

Kotlin 1.4k Jan 4, 2023
Demo for Jetbrains webinar on "How to share data layer in KMM"

RealmDemo Demo application demostrating how to share data layer in an KMM project using Realm Kotlin SDK and Atlas App Service. Webinar Link : https:/

MongoDB Developer Relations 9 Dec 15, 2022
Crunch-Mobile - A Food Delivery Mobile App which uses Modern App Architecture Pattern, Firebase And a Simple Restful Api

Crunch-Mobile This is a Food Delivery Mobile App which uses Modern App Architect

Bright Ugwu 1 Jan 1, 2022
Simple MVVM app to get photos through https://unsplash.com api

MyPhotoLoaderApp Simple photo loading app powered by Unsplash.com which implements MVVM architecture using Hilt, Navigation Component, Retrofit, Pagin

Behnam Banaei 10 Oct 6, 2022