如何最好地复制一个Android项目? [英] How best to duplicate an Android project?

查看:133
本文介绍了如何最好地复制一个Android项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经建立了一个Android项目,我想对其进行克隆,重命名和重命名,但是我不确定如何做到最好.我以为我可以复制项目文件,然后遍历整个树,重命名com.domain.project引用等,但是肯定有更正确"的方法吗?

I've built an Android project that I'd like to clone, rename and rebrand but I'm not sure how best to do this. I assume I could just make a copy of the project files and then go through the entire tree renaming the com.domain.project references etc, but surely there's a more 'proper' way of doing this?

该项目是在Android Studio中构建的,它是一个基于Phonegap的应用程序.也许唯一的方法是使用Phonegap创建一个新项目,然后替换资产树?

The project was built in Android Studio and it's a Phonegap based app. Perhaps the only way would be to use Phonegap to create a new project and then replace the assets tree?

推荐答案

  1. 复制项目.
  2. 更改项目名称 3.使用重构更改其程序包名称.
  3. 更改清单文件中的软件包名称.
  4. 也更改应用名称.
  5. 删除所有错误(如果有).
  6. 将新项目导入eclipse.
  1. copy the project.
  2. Change the project name 3.change its package name using refactor.
  3. change package name fom manifest file.
  4. change app name aswell.
  5. Remove all errors if any.
  6. import new project into eclipse.

这篇关于如何最好地复制一个Android项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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