"I am not able to use both android x as well as appCompat, is ther a way or i have to migrate all my code to androidX"

I tried putting in different module but it didn't worked

Do I have to migrate if my compile sdk version is 28?