Import Error: Package Does not Exist
when you execute a ./gradlew Build command, based on your application code because of some abruption caused, a new build Directory is generated which contains your executable build scripts.
Sometimes the build directory might not be fully generated properly, hence this error comes up.
You can resolve this by running the following command in the terminal.
This removes the build directory which was generated because of the previous build.
and then execute your respective