커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
navigation 오류문의
[왕초보] Kotlin으로 만드는 공공데이터 활용 안드로이드 앱 v0
5주차
북마크
정*민
댓글
10
추천
0
조회수
16
조회수
16
답변 완료

모든 코드 다 적용하고 돌리는데 fatal 오류 떠서 구글링 찾아보니 navigation 쪽 문제가 있더라구요 빨간색 뜸


여기서 안드로이드 id랑 name을 일단 바꾸긴했는데 아직도 빨간줄이라 어떻게 해야할까요?

<?xml version="1.0" encoding="utf-8"?>
<navigation 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:id="@+id/nav_graph"
    app:startDestination="@id/HomeFragment">

    <fragment
        android:id="@+id/HomeFragment"
        android:name="com.example.yakbangapp.ui.home.HomeFragment"
        android:label="@string/first_fragment_label"
        tools:layout="@layout/fragment_first">

        <action
            android:id="@+id/action_FirstFragment_to_SecondFragment"
            app:destination="@id/SecondFragment" />
    </fragment>
    <fragment
        android:id="@+id/DetailFragment"
        android:name="com.example.yakbangapp.ui.detail.DetailFragment"
        android:label="@string/second_fragment_label"
        tools:layout="@layout/fragment_second">

        <action
            android:id="@+id/action_SecondFragment_to_FirstFragment"
            app:destination="@id/FirstFragment" />
    </fragment>
</navigation>




스파르타 즉문즉답





취소
 공유
취소
댓글 0
댓글 알림
나의얼굴