简体   繁体   中英

How to rename a project and package name in Android Studio?

How can I rename a project and package name in Android Studio?

I tried to rename all files, classes and variables but when i compile the program without problems, it forces close in Android. Better explanation:

  1. Have a project which i want to rename completely from xxx.example1.xxx to xxx.example2.xxx .

  2. I renamed everything replacing xxx.example1.xxx to xxx.example2.xxx .

  3. I compiled the project without any problems and the apk is generated.

  4. When i install the application and start it, it doesn't work showing me "force close".

  5. I see the debug messages and I notice that "java.lang.NoClassDefFoundError" is still using the old name.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM