Build error: Cannot find symbol. Points to navigation actions

Build error: Cannot find symbol. Points to navigation actions

我不断收到一条错误消息,提示找不到导航操作。这是它给我错误的地方:

public void onItemClick(String item) {
        switch (card) {
            case ACCESSORIES:
                navController.navigate(TypeOfInfoFragmentDirections.actionTypeOfInfoToAccessories(item));
            case ARMOR_PIECES:
                navController.navigate(TypeOfInfoFragmentDirections.actionTypeOfInfoToArmorPieceType(item));
            case ARMOR_SETS:
                navController.navigate(TypeOfInfoFragmentDirections.actionTypeOfInfoToArmorSets(item));
            case DESTINIES:
                navController.navigate(TypeOfInfoFragmentDirections.actionTypeOfInfoToDestinyList(item));
            case ENEMIES:
                navController.navigate(TypeOfInfoFragmentDirections.actionTypeOfInfoToEnemyList(item));
            case GEMS:
                navController.navigate(TypeOfInfoFragmentDirections.actionTypeOfInfoToGemList(item));
            case LORESTONES:
                navController.navigate(TypeOfInfoFragmentDirections.actionTypeOfInfoToLoreSets(item));
            case POTIONS:
                navController.navigate(TypeOfInfoFragmentDirections.actionTypeOfInfoToPotionTypes(item));
            case QUESTS:
                navController.navigate(TypeOfInfoFragmentDirections.actionTypeOfInfoToQuestList(item));
            case SKILLBOOKS:
                navController.navigate(TypeOfInfoFragmentDirections.actionTypeOfInfoToSkillbook(item));
            case TRAINERS:
                navController.navigate(TypeOfInfoFragmentDirections.actionTypeOfInfoToTrainerList(item));
            case TWISTS:
                navController.navigate(TypeOfInfoFragmentDirections.actionTypeOfInfoToTwistList(item));
            case WEAPONS:
                navController.navigate(TypeOfInfoFragmentDirections.actionTypeOfInfoToWeaponList(item));

它给我所有 13 个导航操作的错误。这是我的 gradle:https://pastebin.com/jaK6CK7z

最后是导航文件:https://pastebin.com/8DyR7vpj 据我所知,我拥有所有需要的元素。非常感谢任何帮助。

我找到问题了。我试图导航到嵌套 NavGraph 中的目的地。我发现我不需要嵌套图,所以我需要做的就是把图拿出来,留下碎片。