Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I rename a package in Android Studio?

I've just installed Android Studio and either the files were not correct in the first place or I've messed up the import process.

My project's gen folder is showing the package as com.example.something and my src folder is showing the package as com.myname.something as it should. How can I change the name of the package in the gen folder to match that of the src folder?

I think as a result I'm getting R errors and it's driving me mad!

Thanks muchly.

like image 726
mattFllr Avatar asked Dec 05 '25 15:12

mattFllr


1 Answers

Try to call from menu Build - > Rebuild Project.

like image 82
Yakiv Mospan Avatar answered Dec 09 '25 22:12

Yakiv Mospan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!