I stay oversea in 2018 more than 330 days. I still work for my U.S employer and get paid . Do I qualify for foreign earned income exclusion?

I stayed outside of U.S for more than 330 days in 2018. I still work for my U.S employer and paid. That is my only income in 2018. Do I qualify foreign earned income exclusion? Does it apply to both Federal and state tax?