error: Package R does not exist after renamed package name?

Please Share On:

The problem only exists when you copied your existing project and rename its package name to another package name. After you have built your project you get the following error:

error: Package R does not exit.

See the screen shot:

Wait a minute, did you change your package name in manifest.xml also? If not, first open your manifest.xml file.

mobile -> manifests ->AndroidManifest.xml

See the package name. Is it still the existing project package name? Rename this package name to your new project package name.

That’s it. Now rebuilt your project. The above error is solved now.



You may interest on the following topics:

Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright @2023. All Right Reserved.


Social media & sharing icons powered by UltimatelySocial