(LC)Which of the following sentences is grammatically correct?

I stayed up all night doing homework; however, I just couldn't concentrate.
I stayed up all night doing homework, however I just couldn't concentrate.
I stayed up all night doing homework however, I just couldn't concentrate.

Respuesta :

i stayed up all night doing homework, however i just couldn't concentrate.
The first one (with the semicolon) is correct.