S
S
Stanislav Korolevskiy2017-10-24 17:23:15
Android
Stanislav Korolevskiy, 2017-10-24 17:23:15

How to transfer android studio project from mac to windows?

Created a project in android studio on mac. Periodically it needs to be transferred to windows and back. Stupidly copied the folder with the project, but when you start the android emulator on windows, the studio swears that the file is damaged.

Installation failed with message Invalid File: D:\Users\stanislau\Developing\Android\TestApp\app\build\intermediates\split-apk\debug\slices\slice_2.apk.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.
WARNING: Uninstalling will remove the application data!
Do you want to uninstall the existing application?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
coden55, 2017-10-24
@korolevsky_s

Possible solutions:
1. Wipe the testapp\build and testapp\app\build folders (there is nothing important there, they will be restored when the project is opened)
2. Disable Enable Instant Run in Settings -> Build, Execution, Deployment -> Instant Run (not the best option)
3. Bookmark Build - Clean project then Build APK
4. Keep the project in the repository and synchronize during transfer (for example, bitbucket allows you to create private ones for free, unlike github) (IMHO the most correct option)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question