1

hi is there a way I can rename the package name using this format

live.company.appname.client instead of just com.client alone

I tried it using my desired package name but it keeps getting com.client

or com + the last word after the last "."

The reason I am doing this is that I have a that required a package name and the package name I set in that library is fixed and I can't change it

sorry for my bad english

Nipun Thennakoon
  • 3,586
  • 1
  • 18
  • 26
Beginner
  • 4,118
  • 3
  • 17
  • 26

1 Answers1

2

applicationId exactly matches the Java-style package name you chose during setup. However, the application ID and package name are independent of each other beyond this point. You can change your code's package name (your code namespace) and it will not affect the application ID, and vice versa (though, again, you should not change your application ID once you publish your app).

Your application ID is defined with the applicationId property in your module's build.gradle file.

defaultConfig {
        applicationId "live.company.appname.client"
      }
IntelliJ Amiya
  • 74,896
  • 15
  • 165
  • 198