This is a tutorial from Stevdza-San ROOM database
- Android Studio
- Clone the repo
git clone https://github.com/github_username/repo_name.git
- Install Stuff
- Setup the Environment
- Any links you need to make
Use this space to show useful examples of how a project can/should be used.
See the open issues for a list of proposed features (and known issues).
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
Copyright ©JAKTOOL LLC. - All Rights Reserved
Unauthorized copying of this file, via any medium is strictly prohibited.
Proprietary and confidential
Vicki Kaiser - [email protected]
- New Empty Android Project
- 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'
}
}