AS之rename project以及copy project

来源:互联网 发布:网络拒绝接入华为 编辑:程序博客网 时间:2024/05/18 02:36

In Android Studio 1.2, I found both of the following work OK for a project which has been copied|moved|renamed.

Approach: Import

1. Build > Clean Project2. File > Close Project3. Copy, Move, and/or Rename Folder4. File > New > Import Project...

Approach: Syn Project with Gradle Files

1. Build > Clean Project2. File > Close Project3. Copy, Move, and/or Rename Folder4. Delete /old_name.iml (no longer needed)5. File > Open6. Tools > Android > Sync Project with Gradle Files

Both have the same outcome.

Import is one less step. Import is conveniently located on the welcome screen and File > New menu.

Sync Project with Gradle Files is a somewhat more obscure menu item. However, Sync Project with Gradle Files is a good fallback if you click open when intending to Import

参考资料

http://stackoverflow.com/questions/17490734/how-to-move-and-rename-a-project-in-android-studio

0 0
原创粉丝点击