My app crashes when trying to add fragments to project
I am trying to create a project with two fragments and two buttons that show the fragments when clicked. I am providing my files below. When I try to run the app it crashes and won't even let me fully test it. Please help.(I am coding in Kotlin)
Fragment1 Java File
package example.alyssa.com.a10
import android.content.Context
import android.net.Uri
import android.os.Bundle
import android.app.Fragment
import android.view.LayoutInflater
import android.view.View
import...