gpt4 book ai didi

android - 将现有代码分解为 java 和 android 模块

转载 作者:太空宇宙 更新时间:2023-11-03 10:37:49 25 4
gpt4 key购买 nike

我已经创建了一个 Android 应用程序。为了方便代码的维护,我想将其分解成模块并将代码移动到这些模块中。我知道如何在 Android Studio 2.2.2 中创建模块。

我无法在 IDE 中找到任何将代码移动到新模块的快捷方式(类似于使用“重构”菜单项将代码移动到不同的类)。

最佳答案

点击要移动的包或文件,拖放到新建模块的src包中。

关于android - 将现有代码分解为 java 和 android 模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40193856/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com