2020년 6월 12일 금요일

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'}

2020년 5월 17일 일요일

no permissions (user in plugdev group; are your udev rules wrong?)

# run commends below on terminal
$ sudo apt-get install libmtp-common mtp-tools libmtp-dev libmtp-runtime libmtp9
$ sudo apt-get dist-upgrade

# remember the red text below
$lsusb
Bus 007 Device 002: ID 18d1:6jw2 Google Inc.
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 8087:0aa7 Intel Corp.
Bus 001 Device 003: ID 04b4:2001 Cypress Semiconductor Corp.
Bus 001 Device 002: ID 045e:0823 Microsoft Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

# open the file and input the string below
$ sudo nano /etc/fuse.conf
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="6jw2", MODE="0666", GROUP="plugdev"

$ sudo udevadm control --reload-rules

$ adb devices

# Solved. right? :)

2020년 4월 17일 금요일

Tensorboard error

When errors occur with libprotobuf or protobuf in Tensorboard(Tensorflow 1.14 or 1.15)

Just downgrade its version all above as 3.8.0 in Anaconda.

2020년 3월 11일 수요일

[iOS 배포] TestFlight Public link


1. Join the App Store Connect
2. Click to TestFlight
3. Click New Group
4. Add Testers(email and name)
5. Click the Group that you made just before
6. Click Enable Public Link
7. copy the link and share to others