1. resource resource 파일내 Colors.xml과 String.xml 에서 데이터를 가져오는 실습 중 getColor() 를 바로 사용하게 되면 에러가 발생한다. 이유는 resource 없이 하는 것은 API level 23 이상이여야 하기 때문이다. Call requires API level 23 (current min is 16): android.content.Context#getColor 때문에 아래와 같이 if문을 이용하여 버전에 따라 다른 명령어가 수행되도록 한다. val color =if(Build.VERSION.SDK_INT>= Build.VERSION_CODES.M) { button.setBackgroundColor(getColor(R.color.textview_color)..