Выдает ошибку textView

public class SecondActivity extends AppCompatActivity {

    private TextView text_content;
    private ImageView iContent;

    private int position = 0;
    private int category= 0;
    private int [] array_test = {R.string.out1, R.string.out2, R.string.out3, R.string.out4, R.string.out5};

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.secondactivity);
        text_content = findViewById(R.id.textView);

@layout/secondactivity does not contain a declaration with id textView - ошибка, как это исправить? сам id в разметке есть

разметка

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".SecondActivity">


    <TextView
        android:id="@+id/textView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="98dp"
        android:layout_marginTop="70dp"
        android:layout_marginEnd="256dp"
        android:layout_marginBottom="642dp"
        android:text="@string/out1"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <ImageView
        android:id="@+id/imageView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="83dp"
        android:layout_marginTop="53dp"
        android:layout_marginEnd="79dp"
        android:layout_marginBottom="425dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/textView"
        app:srcCompat="@drawable/blackhorse"
        android:contentDescription="@string/todo" />
</androidx.constraintlayout.widget.ConstraintLayout>

Ответы (0 шт):