Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
110 views
in Technique[技术] by (71.8m points)

android - NO FRAGMENTS found in the NAVIGATION EDITOR

Navigation Editor

Though there are fragments present in the layout directory, none of it shows up in the navigation editor, except main activity.

p.s: I've also tried Invalidate Caches and Restart but didn't work.

Somebody please help me with this. Thanks in advance :)

question from:https://stackoverflow.com/questions/66046077/no-fragments-found-in-the-navigation-editor

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I found a similar issue here: Fragments are not displaying in Android Navigation component .

Without seeing any code like your dependencies or your fragments it is hard to deduce. If you are not already using the Androidx libraries you could try migrating to those and seeing if that helps.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...