Log오류??
package com.gundol.dice_appimport androidx.appcompat.app.AppCompatActivityimport android.os.Bundleimport android.util.Logimport android.widget.Toastimport androidx.databinding.DataBindingUtilimport com.gundol.dice_app.databinding.ActivityMainBindingimport kotlin.random.Randomclass MainActivity : AppCompatActivity() { private lateinit var binding: ActivityMainBinding override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) binding = DataBindingUtil.setContentView(this, R.layout.activity_main) //binding 기능으로 레이아웃찾기 val diceImage1 = binding.dice1 val diceImage2 = binding.dice2 binding.diceStartBtn.setOnClickListener { Toast.makeText(this, "주사위 굴러가유~", Toast.LENGTH_LONG).show() Log.d("MainActivity", Random.nextInt(1, 7).toString()) Log.d("MainActivity", Random.nextInt(1, 7).toString()) val number1 = Random.nextInt(1, 7) val number2 = Random.nextInt(1, 7) if (number1 == 1) { diceImage1.setImageResource(R.drawable.dice_1) //setImageResource를 이용해서 이미지를 변경할수 있다. } else if (number1 == 2) { diceImage1.setImageResource(R.drawable.dice_2) } else if (number1 == 3) { diceImage1.setImageResource(R.drawable.dice_3) } else if (number1 == 4) { diceImage1.setImageResource(R.drawable.dice_4) } else if (number1 == 5) { diceImage1.setImageResource(R.drawable.dice_5) } else { diceImage1.setImageResource(R.drawable.dice_6) } if (number2 == 1) { diceImage2.setImageResource(R.drawable.dice_1) } else if (number2 == 2) { diceImage2.setImageResource(R.drawable.dice_2) } else if (number2 == 3) { diceImage2.setImageResource(R.drawable.dice_3) } else if (number2 == 4) { diceImage2.setImageResource(R.drawable.dice_4) } else if (number2 == 5) { diceImage2.setImageResource(R.drawable.dice_5) } else { diceImage2.setImageResource(R.drawable.dice_6) } } }}