Skip to content

vlkaiser/Room_Database_Android_App_Tutorial

Repository files navigation

![JaktoolLogo][JaktoolLogo]

README: Android App with Room Database

Table of Contents


About The Project

This is a tutorial from Stevdza-San ROOM database


Getting Started

Prerequisites

  • Android Studio

Installation

  1. Clone the repo
    git clone https://github.com/github_username/repo_name.git
  2. Install Stuff
  3. Setup the Environment
  4. Any links you need to make

Usage

Use this space to show useful examples of how a project can/should be used.


Roadmap

See the open issues for a list of proposed features (and known issues).


Contributing

Please follow these steps to contribute to the Project

Fork the Project Create your Feature Branch (git checkout -b feature/AmazingFeature)
Commit your Changes (git commit -m 'Add some AmazingFeature)
Push to the Branch (git push origin feature/AmazingFeature)
Open a Pull Request


License

Copyright ©JAKTOOL LLC. - All Rights Reserved
Unauthorized copying of this file, via any medium is strictly prohibited.
Proprietary and confidential

Contact

Vicki Kaiser - [email protected]


Acknowledgements and Resources


Steps

  1. New Empty Android Project
  2. build.gradle (Module: xxx.app)
    Note: These versions come from Google's Maven Repository and may need to be updated - the compiler should suggest the most recent available under 'Problems'

Within: dependencies { }

    // Navigation Component
    implementation 'androidx.navigation:navigation-fragment-ktx:2.3.5'
    implementation 'androidx.navigation:navigation-ui-ktx:2.3.5'

// Room components
    implementation "androidx.room:room-runtime:2.3.0"
    kapt "androidx.room:room-compiler:2.3.0"
    implementation "androidx.room:room-ktx:2.3.0"
    androidTestImplementation "androidx.room:room-testing:2.3.0"

// Lifecycle components
    implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"
    implementation "androidx.lifecycle:lifecycle-common-java8:2.3.1"
    implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1"

// Kotlin components
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.31"
    api "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2"
    api "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2"
    

Notice 'kapt' has an error - right click -> Generate -> Within: compileOptions { }
Make sure:

  compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    kotlinOptions {
        jvmTarget = '1.8'
    }
}

About

Stevdza-San Youtube Tutorial on Room Databases for Android Apps. https://www.youtube.com/watch?v=lwAvI3WDXBY

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages