While working on a Sample Application for Android I refactored all of the packages names. Afterwards I ran into trouble installing/deploying the application to a device using a different dev machine (I performed the refactoring on my desktop machine). The error also mentioned the old (x) new package names “Package
x inconsistent with package
y“. I assumed this was an issue with code deployed to the device. Turns out it was local and performing a
clean resolved the issue.
$ ./gradlew clean