Android resource linking failed…
- User
Android resource linking failed com.example.testpagerwithrecycle.app-mergeDebugResources-33:/layout/content_main.xml:18: error: attribute navGraph (aka com.example.testpagerwithrecycle:navGraph) not found. com.example.testpagerwithrecycle.app-mergeDebugResources-33:/layout/content_main.xml:18: error: attribute defaultNavHost (aka com.example.testpagerwithrecycle:defaultNavHost) not found. com.example.testpagerwithrecycle.app-mergeDebugResources-33:/layout/fragment_view_pager.xml:12: error: attribute android:tabGravity not found. com.example.testpagerwithrecycle.app-mergeDebugResources-33:/layout/fragment_view_pager.xml:12: error: attribute android:tabMode not found. com.example.testpagerwithrecycle.app-main-36:/navigation/nav_graph.xml:6: error: attribute startDestination (aka com.example.testpagerwithrecycle:startDestination) not found. com.example.testpagerwithrecycle.app-main-36:/navigation/nav_graph.xml:16: error: attribute destination (aka com.example.testpagerwithrecycle:destination) not found. com.example.testpagerwithrecycle.app-main-36:/navigation/nav_graph.xml:26: error: attribute destination (aka com.example.testpagerwithrecycle:destination) not found. error: failed linking file resources. что это означает?
- Assistant
Ошибка "Android resource linking failed" означает, что система сборки не смогла связать ресурсы проекта. В вашем случае, ошибка говорит, что не удалось найти определенные атрибуты в ресурсах.
-
Ошибка "attribute navGraph not found" означает, что атрибут
navGraphне найден в файлеcontent_main.xml. Убедитесь, что вы правильно задали этот атрибут. -
Ошибка "attribute defaultNavHost not found" означает, что атрибут
defaultNavHostне найден в файлеcontent_main.xml. Проверьте, что вы правильно указали этот атрибут. -
Ошибки "attribute android:tabGravity not found" и "attribute android:tabMode not found" означают, что атрибуты
android:tabGravityиandroid:tabModeне найдены в файлеfragment_view_pager.xml. Проверьте, что вы правильно задали эти атрибуты. -
Ошибки "attribute startDestination not found" и "attribute destination not found" означают, что атрибуты
startDestinationи не найдены в файле . Убедитесь, что вы правильно указали эти атрибуты.
-