Android Studio moving project to another computer?

无人久伴 提交于 2019-12-03 18:51:33

问题


Does anyone one know how to move one project built using Android Studio to another computer?


回答1:


The folder is under C:\Users\YOU\AndroidStudioProjects\PROJECTNAME

You should be able to work on it on any computer with android studio installed.

No such thing as a stupid question. Thanks for asking!




回答2:


Very simple.. Go to your project in AndroidStudioProjects, copy and paste it on pendrive/sdcard. Then plug it to another computer and open..




回答3:


Copy the project directory from source to destination machine. Then follow the steps.

  1. Open Android Studio
  2. Go to File - > Open
  3. Browse to the project location.
  4. Select build.gradle and open.

Android Studio will automatically make the necessary changes for the target machine and set up the project.

NOTE : It usually confuses the first timers, as after copying project files into target machine, when you try to open the project, it considers it as a normal directory, not as android project.




回答4:


I moved one project from PC to another with the same version of Android Studio (now for me is 2.3.3) and I have a failed to launch in emulator because the path of build test was not found. However the solution is simply:

Build->Clean and Rebuild.




回答5:


I finally find the solution. this is simple:

1- Go to your project folder, then open gradle>wrapper>gradle-wrapper.properties with note pad.
2- In last line, change your distribution URL to :distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip(or each version of gradle you have.)
3- then go to Android studio and in project build.gradle and change your class path to latest version of gradle you have. classpath 'com.android.tools.build:gradle:2.1.2'
4- Go to app gradle.build and set buildToolsVersion "23.0.3"



来源:https://stackoverflow.com/questions/29567931/android-studio-moving-project-to-another-computer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!