Translation:I can speak fluent Spanish.
Both should be accepted. With language it's never about literal translations but about modifying in a sense that it rolls off the tongue easier.
I can speak Spanish fluently = 我能流利地说西班牙语
流利的(=fluent ) modifies 西班牙语(Spanish)
流利地(=fluently) modifies 说(speak)