问题
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.
- Open Android Studio
- Go to File - > Open
- Browse to the project location.
- 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