I have an Android Studio project built under Windows, now when I copy all folder to Mac and try to open it in Mac version of Android Studio it prompts for lots of error, most them pointing to a path on Windows machine. How can I modify project so all paths be relative and not machine (or absolute path) dependent?Answer1:
You shouldn't have to modify anything because the shareable files shouldn't have absolute paths in them at all. Share only the source files and build script files (<strong>build.gradle</strong> and <strong>settings.gradle</strong> and the Gradle wrapper files). Don't share project files (<strong>.iml</strong> files or the <strong>.idea</strong> folder). Don't share the <strong>local.properties</strong> file, which is local to an individual machine.