如何将项目迁移到另一台机器 [英] How to migrate a project to another machine

查看:180
本文介绍了如何将项目迁移到另一台机器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要迁移Android Studio中开发从一台机器到另一台机器,所以我可以继续工作的Andr​​oid项目。

我试着项目目录复制到目标机器;但是,Android Studio中打开项目时(<大骨节病>文件→<大骨节病>打开)在目标机器上,它不会加载它作为一个Android项目,而是认为它是只是一个目录。

我如何迁移项目到另一台机器?


解决方案

通常会出现此问题,仅当您尝试加载了第一次项目。相反,一个机器人项目,它认为是只是一个目录。

在这里输入的形象描述

不过,我发现周围的一种方式,它可以解决这个问题。


  1. 复制项目目录目标机器。


  2. 从Android的工作室,进入文件 - >打开;浏览项目目录。


  3. 展开项目目录,打开的build.gradle 。它将完成所需的自动设置并加载的项目。


在这里输入的形象描述

<醇开始=4>
  • 下一次,当你将打开该项目,它会认为这是一个Android项目。

  • 在这里输入的形象描述

    I want to migrate an Android project developed in Android Studio from one machine to another machine so I can continue working.

    I tried to copy the project directory to the target machine; but, when opening the project in Android Studio (FileOpen) on the target machine, it doesn't load it as an Android project, instead it considers it to be just a directory.

    How can I migrate a project to another machine?

    解决方案

    Usually this problem occurs, only when you try to load the project for first time. Instead of an android project, it considers to be just a directory.

    However, I found a way around, which can fix this issue.

    1. Copy the project directory to target Machine.

    2. From Android Studio, go to File->Open; Browse the project directory.

    3. Expand the project directory and open build.gradle. It will complete the required set up automatically and load the project.

    1. Next time, when you will open the project, it will consider it an Android Project.

    这篇关于如何将项目迁移到另一台机器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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