As shown in the figure, generally when creating a project, the package name is com.hjly.pos structure, so if it is necessary to disassemble the last structure as shown in the figure, you can operate as follows
After unchecking Compact Empty Middle Packages, the package structure will be split.
Note: The menu list of clicking the setting button in the old version of AS is different from that of the new version. There is no Tree Appearance option, and the Compact Middle Packages option is directly visible. This point should be distinguished
Here, for example, in the swy directory, create a new util package
And we select com and swy structures, and check Compact Empty Middle Packages again
That is, the operation of splitting the package name is completed