Best way to prevent creaking floors/stairs in a new build?

Hi

Any tips on what the best way to prevent creaking floors/stairs long term on new build home? What extra can be done to prevent this?
OSB are the boards used.

Subfloor adhesive and screws.

Yep!

Yep liquid nail.

Many times the creeking is from wood moving up and down a nail. Adhesive and screws will stop the movement.