I am trying to rename my Android Studio package as described in the first answer, to: Android Studio Rename Package
Trying to change org.springframework.android.showcase to org.springframework.android.showcase2
Refactoring seems to work fine, then I try to remove the old package in /gen/org.springframework.android/showcase. This happens, but then reappears (inside / gen / org.springframework.android / showcase)
When compiling, I get more than 100 errors related to links to the R.java file.
Copying the R.java, Manifest.java file from the original to the new does not work. Studio simply deletes them, but leaves the BuildConfig.java file.
Is there an easier way because Studio just doesn't want to play ball?
Below is my project structure if useful.

source
share