0

I've clone a copy of Rocket Chat Android app, I'm trying to customize it and I need to change the package name.

I have followed this steps: Android Studio Rename Package and now I'm getting the next error whenever I try to run the project.

Error:Execution failed for task ':rocket-chat-core:compileKotlin'. Compilation error. See log for more details

Log itself has no extra information. Also Android Studio is showing me an "cannot resolve symbol R" error.

I've already tried to Rebuild Project without any changes. Also didn't find too much information about the error.

Anybody? Thx

Daniel Duque
  • 37
  • 1
  • 9

1 Answers1

2

There should be same package name in two places:

  1. Gradle - Check application id.

  2. Manifest - Check the package name.

If both are same. Go to your project directory and delete the build folder and delete the another build directory under app folder.

Now click Invalid Caches/Restart in the file tab.

Check the every class file having the new package name in the R file import statement.

Hope it helps:)

Vishal Yadav
  • 3,642
  • 3
  • 25
  • 42
Bhuvanesh BS
  • 13,474
  • 12
  • 40
  • 66