2020년 6월 12일 금요일

우분투(18.04) 설치 후 윈도우(Win10 pro) 설치(멀티부팅)

https://goodtogreate.tistory.com/entry/%EB%A9%80%ED%8B%B0%EB%B6%80%ED%8C%85-%EC%9A%B0%EB%B6%84%ED%88%AC-%EC%84%A4%EC%B9%98-%ED%9B%84-%EC%9C%88%EB%8F%84%EC%9A%B0-Install-Windows10-alongside-Ubuntu

우분투 카톡 설치

와인설치는 아래 링크 먼저 확인해서 설치.
와인 버전 설치할 때 우분투 버전 18, 19 구분하는 옵션 부분 잘 확인해서 설치

카톡설치
https://lucidmaj7.tistory.com/159

와인설치
http://ubuntuhandbook.org/index.php/2020/01/install-wine-5-0-stable-ubuntu-18-04-19-10/

우분투 18.04에 윈도우 10 멀티부팅

윈도우 설치 후 재부팅하면 오랫동안 진행이 안되는 것 같은데 완료됨.
네트웍이 무선이 아니라 유선으로 연결을 해야진행되는 걸 수도 있음.
무선으로 연결해서 한참 기다려도 윈도우화면 안나와서 몇번 설치 실패.
유선 연결 후 20 ~ 30분 정도 기다린 후 정상 설치 됨. 무선에서 더기다려서 될수도 있음.

https://goodtogreate.tistory.com/entry/%EB%A9%80%ED%8B%B0%EB%B6%80%ED%8C%85-%EC%9A%B0%EB%B6%84%ED%88%AC-%EC%84%A4%EC%B9%98-%ED%9B%84-%EC%9C%88%EB%8F%84%EC%9A%B0-Install-Windows10-alongside-Ubuntu

Ubuntu 18.04 Wine 설치

http://ubuntuhandbook.org/index.php/2020/01/install-wine-5-0-stable-ubuntu-18-04-19-10/

2020년 6월 6일 토요일

To use Room in Android, you need more dependencies

When you use Room in Android, set the options below

In build.gradle(Module:app)
------------------------------------------------------------------------------------------
apply plugin: 'kotlin-kapt'

dependencies {
    def room_version = "2.2.3"
    def lifecycle_version = "2.2.0"
    implementation "androidx.room:room-runtime:$room_version"
    implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version"

    implementation "android.arch.lifecycle:extensions:$lifecycle_version"
    kapt "android.arch.lifecycle:compiler:$lifecycle_version"
    implementation "android.arch.persistence.room:runtime:$room_version"
    kapt "androidx.room:room-compiler:$room_version"
}

2020년 6월 4일 목요일

When you meet the error 'Failed to resolve: com.github.PhilJay:MPAndroidChart:v3.1.1'

in build.gradle(Project: project name)

buildscript {    ext.kotlin_version = "1.3.72"    repositories {        maven { url 'https://jitpack.io'}
        google()
        jcenter()
    }    dependencies {        classpath "com.android.tools.build:gradle:4.0.0"        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        // NOTE: Do not place your application dependencies here; they belong        // in the individual module build.gradle files    }}
allprojects {    repositories {        maven { url 'https://jitpack.io'}
        google()
        jcenter()
    }}


in build.gradle(Module: app)
dependencies {
    implementation fileTree(dir: "libs", include: ["*.jar"])
    implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"    implementation 'androidx.core:core-ktx:1.3.0'    implementation 'androidx.appcompat:appcompat:1.1.0'    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'    implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
    testImplementation 'junit:junit:4.13'    androidTestImplementation 'androidx.test.ext:junit:1.1.1'    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'}