2023-1-10 Update:
Under the build.gradle of the module, or directly search the applicationId globally
to find such as: applicationId "com.example.httptest3",
directly modify the package name in the quotation marks
to: applicationId "com.example. http0"
recompile to complete the modification of the package name
The following original content is marked as obsolete//20230110
@deprecated:
1:
Right-click the package name → Refactor (refactoring) → Rename
2:
3:
Select the Rename range (it is recommended to check and select as follows)
4:
5:
A key step, remember that after clicking 'Refactor' in step 4, Android Studio will not rename and refactor immediately, it will display a preview of the refactoring in the 'Find' bar at the bottom, we click 'Do Refactor', Just do the refactoring now.
6:
You can use Ctrl + Shift + R to globally search the package name before replacement to see if there are any omissions. If so, just press Ctrl + Shift + R to replace
我只担心一件事,我怕我配不上自己所受的苦难 ---陀斯妥耶夫斯基