ANDROID STUDIO - how to back up a project

How to back up a project in ANDROID STUDIO. I tried to just copy the project folder, but I had problems building the project. My application is not working properly.

build.gradle

files:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.2.3'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

      


apply plugin: 'com.android.application'

android {
    compileSdkVersion 22
    buildToolsVersion "22.0.1"

    defaultConfig {
        applicationId "com.example.ss.new_my_wid"
        minSdkVersion 19
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.android.support:appcompat-v7:22.2.0'
}

      

+5


source to share


4 answers


Go to AndoridStudioProjects folder and find your project. convert to zip file and save somewhere extract and import the project into android studio whenever you need it will work.



+4


source


In your Android Studio go to the File menu and select Export to Zip File. In case your backup process doesn't work, just add the missing ones depends. That's it ... enter image description here



+3


source


Just wondering how I tried this myself. This is how I decided to work with it.

FOR BACKUP

1./Create a new folder in your Android Studio projects folder called "Backups" (optional, but easier to navigate when it comes to unpacking and extracting, however you can also put backups to an external drive for obvious reasons)

2./Click "File"> "Export to Zip File"

2b / If step 1, double click the "! Backups" folder

2c / choose a suitable backup name (ProjectYYMMDD?)

2d / OK

RECOVERY

1./Find a folder using Windows Explorer ... C: \> Users> {yourDeviceName}> Android Studio Projects> "! Backups" ... (I keep a shortcut to Android Studio projects) on my desktop to do this easier)

2./Right click the project> Extract All

2b / Remove the last part of the path (/ ProjectYYMMDD)

2c / Extract

2d / Rename the extracted folder to the desired project name

2e / Drag folder from backups to AndroidStudioProjects folder

USE

1./Open Android Studio - Open an existing studio project

2./C: \> Users> {yourDeviceName}> Android Studio Projects

3./Select the recovered project folder and open The icon will be different but change to normal once it is a built project according to android studio site

It worked when I tested it, so should work for everyone. If not, please forgive me, I'm brand new in all this 😊

+2


source


Android Studio 3.5

Original project: JetFighter001

Menu: File / Export to Zip File Change the name of the Zip file to JetFighter002.

Unzip the file.

Close the Jetfighter001 project in AndroidStudio.

Welcome to Android Studio will appear on the screen.

Click "Import Project (Gradle, Eclipse ADT, etc.)"

Select the unzipped Jetfighter002 directory.

It all worked!

I used before "Open existing project" but didn't work well.

0


source







All Articles