I am facing this issue after migrating the java code to AndroidX. Tried with updating the JAVA_HOME in bash profile and using java v1.8, but no luck.