Things that can stop it
- Pressing the B button during the evolution cancels it
- Holding an Everstone prevents evolution
If neither applies, the cause is unclear. Once it reaches a later level-up, it can evolve normally.
If your Dragonair levels up but does not evolve, check these two things first before assuming a bug.