The problem is that in the debug folder, the folder is already in the google folder. There is also a folder with the name of my first part of the package. So when I try to rename the first part of the package in my project, I get an error: Cannot create file 'D:\...\...\...\build\generated\source\r\debug\com'. File already exist. In my other projects, the folder with the name of the first part of the package is built in the folder 'com', and here in the 'debug' itself. Tell me, what can I do? Can I somehow change the build path of this folder in debug?
- What does your code look like? What did you try so far? Just a error message is not that helpful.Linus– Linus2018-02-09 19:53:55 +00:00Commented Feb 9, 2018 at 19:53
Add a comment |
1 Answer
Go to Project view in left pane -> (project name folder) -> build
There you will get 3 or 4 folders like: generated, intermediate, outputs like this:

Select all 3 or 4 folders in that build folder and delete them.
Go to Android view in left pane and try to refactor your package name
After that rebuild your project.
That's it!