I did not find an easy way to do it, so when I copy all files and get the breaking error, I just check for the files that didn't make it and copy them again to the project. When all of them are copied, I build it and it gets build successfully.