I'm having issues getting past this point. when I type private EditText nameText; I don't get an import and the application acts like it won't recognize the command.
package com.chriskehl.storybook
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
class storyBook : AppCompatActivity() {
private EditText nameField; // expecting member declaration
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_story_book)
}
}
import EditText manually import android.widget.EditText;
then clean your project
option Build->clean
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.