I am trying to transfer my Android Studio project from my Windows computer over to a Mac.
I am going into my Android Studio Projects, selecting the entire folder "MyApplication", and then copying to an external hard drive.
When I am on the Mac, I try to open the file on Android Studio.
I go to File > Open... and find my application folder on the external hard drive, open.
Then I get this error:
Sync Android SDKs
The path 'C:\\Users\\Owner\\AppData\\Local\\Android\\Sdk' does not belong to a directory. Android Studio will use this Android SDK instead: '/Users/user/Library/Android/sdk' and will modify the project's local.properties file.
I click "OK", and nothing happens.
I assume I am transferring unnecessary local files from my Windows machine, but I don't know which ones I should copy over, which to leave, where to find them, and if there is a simple process for this (like an Export Project).
Sorry not exactly a coding question, but I can't seem to figure this out, and other answers make me feel like this should be super easy.
I already checked this and this .
At the very least, you only need
app/
src/
build.gradle
build.gradle
settings.gradle
You can keep the gradlew
files, or you can install Gradle separately
If you have a local.properties
, you must install Android SDK separately on the second machine, then point the sdk.dir
property to that
As far as transferring projects, I recommend using Git rather than external hard drives
You have to get the settings for your project. For this, you can 'Export Settings' from Android studio in Windows and 'Import Settings' in Mac. A similar type of question is answered.
Check this out: Moving Android Studio Projects and Configurations from Windows 7 to OS X
去找到你的项目存放的地方,在项目上右击,然后为它创建一个zip文件夹,然后把zip文件夹移动到mac上解压,这是最好的方式也是最常用的方式
I did a Mac finder search on "c:\\" on a project imported from Window, and found a file named build-info.xml, that I renamed (temporarily in my mind) build-info-ko.xml ... and then everything went fine, I was able to Run, install APP (which initially failed, before the rename) and launch. (of course, using Mac own local Android SDK, ignoring the initial path with c:\\ )
Android Studio > File > Export to Zip File...
and that's it... unzip the file over at MACOS and open with Android Studio.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.