Why are uses constraints violated when both chains end in the same bundle?
Solution 1:
You don't have to import foo.fragment in app your dependency will resolve from foo. so just remove that dependency and re-deploy that. This issue is because of cyclic dependency.