ray-note/android/Android 开发辅助信息.md

6 lines
592 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

## 修改项目的包名
- 修改包名在Android Studio中把 目录显示中 `Tree Appearrance / Compact Middle Packages` 关闭掉 关闭可以更好的修改包名,更方便
- 修改配置文件:
- namespace: 这个决定了项目中的命名空间的读取
- applicationId: 这个是程序在被读取的时候的id
- fix 代码,修改代码之后 资源导入的 `R``ViewBinding` 等需要根据新的包名和namespace来进行修改AndroidManifest.xml 是根据 `namespace` 来识别文件位置的,比如 `Application``Activity` 等需要引入的数据