Java – Android 3.5 does not import widgets

Android 3.5 does not import widgets… here is a solution to the problem.

Android 3.5 does not import widgets

This may be a super simple question, but it’s a big problem for me because I’m new to AS.

I

updated the latest version of AS (3.5) and when I wanted to import widgets to assign to variables in the XML layout, AutoComplete did not appear, I attached a screenshot to make it clear. I know I missed some parts when updating.

Any help or advice would be appreciated.

enter image description here

Solution

You make statements outside of class. You need to declare it inside.

public class MainActivity extends AppCompatActivity {
    Inside the class
    private TextView textView;

Related Problems and Solutions