简体   繁体   English

Android Studio 1.2.2,如何更改新模块的默认包名

[英]Android Studio 1.2.2, How to change the default package name for new modules

I am trying to make a new module inside my Android Project.我正在尝试在我的 Android 项目中创建一个新模块。 When I go to File > New > New Module... And choose Android Library, the default package name given in the module is always com.example.*****.当我转到 File > New > New Module... 并选择 Android Library 时,模块中给出的默认包名称始终为 com.example.*****。

Is there a way to set this to not be com.example...?有没有办法将其设置为不是 com.example...?

there is a little blue text saying "edit" at the right of the module package name.在模块包名称的右侧有一个蓝色的小文字,上面写着“编辑”。 click on it and then modify the name单击它然后修改名称

For any COVID-19 survivors, the answer you're looking for is here: https://stackoverflow.com/a/65130670/1441731对于任何 COVID-19 幸存者,您正在寻找的答案在这里: https ://stackoverflow.com/a/65130670/1441731

tl;dc - tl;dc -

~/Library/Application Support/Google/AndroidStudio4.1/options/other.xml ~/Library/Application Support/Google/AndroidStudio4.1/options/other.xml

<property name = "SAVED_ANDROID_PACKAGE" value = "com.example" />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM