해결된 질문
작성
·
202
·
수정됨
0
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.dk.mylivealonelife/com.dk.mylivealonelife.MainActivity}: android.view.InflateException: Binary XML file line #50 in com.dk.mylivealonelife:layout/actvity_main: Binary XML file line #50 in com.dk.mylivealonelife:layout/actvity_main: Error inflating class androidx.fragment.app.FragmentContainerView
Caused by: android.view.InflateException: Binary XML file line #50 in com.dk.mylivealonelife:layout/actvity_main: Binary XML file line #50 in com.dk.mylivealonelife:layout/actvity_main: Error inflating class androidx.fragment.app.FragmentContainerView
Caused by: android.view.InflateException: Binary XML file line #50 in com.dk.mylivealonelife:layout/actvity_main: Error inflating class androidx.fragment.app.FragmentContainerView
2024-03-19 09:56:32.052 27206-27206 AndroidRuntime com.dk.mylivealonelife E Caused by: java.lang.UnsupportedOperationException: FragmentContainerView must be within a FragmentActivity to use android:name="androidx.navigation.fragment.NavHostFragment"
Navigation 의존성추가한뒤로 mainActivity 접속시 튕기면서 이런 오류가 나옵니다.
열심히 구글링 해봤는데 에러 핸들링이 안되네요 ㅠㅠ
구글 드라이브 링크 입니다.
https://drive.google.com/file/d/133chRQy9tldO-_9C9t4SCg8IB79J8kvw/view?usp=sharing
섹션 3. 메인화면 레이아웃 꾸미기에 메인화면 꾸미기 - 2 입니다.