What doesn't my code that works here work in Android Studio?
can anyone help me with this? I wrote this code here, and it worked, but when I try and transfer the same code to AS, it doesn't work. I think I must be missing something quite fundamental, but I don't know what. Any help would be much appreciated. My code is below. Many thanks. import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import kotlinx.android.synthetic.main.activity_ceaser_bit.* class CeaserBit : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_ceaser_bit) val s = readLine(textInputEditText) println(message = "The original mmessage is: $s."); var message = "" var shift = readLine(this.textInputEdit2)!!.toInt() for (cd in s) var i = cd.toInt() i += shift if (i > 'z'.toInt()) {i -= 26} val c: Int = i.toChar() message += c } println(message = "encrypted message is: $message.");