在 Android Studio 中使用新名称复制现有项目 [英] Copy existing project with a new name in Android Studio

查看:32
本文介绍了在 Android Studio 中使用新名称复制现有项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想复制我的 Android 项目并使用不同的名称从相同的文件创建一个新项目.这样做的目的是让我的应用程序的第二个版本在应用程序商店中受广告支持.

I would like to copy my Android project and create a new project from the same files just with a different name. The purpose of this is so I can have a second version of my app which is ad supported in the app store.

我在这里找到了这个答案:

I found this answer here:

Android - 使用新名称复制现有项目

但它适用于 Eclipse.如何在 Android Studio 中执行此操作?

But it's for Eclipse. How can I do this in Android Studio?

推荐答案

您指定的链接中的步骤也适用于 Android Studio.只需复制(使用文件管理器)整个模块文件夹并给它一个新名称.现在打开它并使用 Refactor ->重命名(右键单击要重命名的项目)以重命名您的模块和包.

The steps in the link you specified should also work for Android Studio. Just make a copy (using a file manager) of the entire module folder and give it a new name. Now open it up and use Refactor -> Rename (right click on the item you want to rename) to rename your module and package.

有关在 IntelliJ/Android Studio 中重构的详细信息,请参阅.

See this for details about refactoring in IntelliJ/Android Studio.

这篇关于在 Android Studio 中使用新名称复制现有项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆