Backup:
- all files in
[Workspace] -> [app_name]
backup jks and iml file - Folder
[Workspace] -> [app_name] -> [app]
Exclude folder release and build
DO NOT BACKUP: Hiden folder (.gradle, .idea), gradle
Restore all folder structure into your new Workspace folder in new OS
Before you open your project in new OS, adjust your files depend on your your SDK, SDK version and Buildtool version, edit file
[workspace] -> [app_name]
local.properties
sdk.dir=/home/[username]/Android/Sdk
[workspace] -> [app_name] -> [app]
build.gradle
compileSdkVersion 31
buildToolsVersion "31.0.0"
...
targetSdkVersion 31
You can safely open your project, Android Studio will make same adjustment, download some necessary library and reconfigure your project.
Tested on
- Debian Buster
- Android Studio 4.2.x
- moving project from windows to Debian
No comments:
Post a Comment