Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何获取 Android 模块的Package Namefrom Main Project?主项目包含一些模块。getPackageName() 返回应用包名称
Package Name
Main Project
你可以得到这样的包名:
String pname=getPackageName();