I have read almost 10-12 answer on how to change package name but every answer failed to do his job. There are errors after renaming the packages like the old imports are presents.
ex: suppose the old package was com.example.x after changing I made it in.ex.x but in every class file the old imports are present, such as com.example.x.something.
How to rename packages without error?