How to export an Android Studio project as a zip file?

59,662

Solution 1

Starting with Android Studio 3.0, you can use File | Export to Zip File... to export your project. If you're using an older version, you can use the file manager of your operating system to pack the directory of your project into a .zip file.

Solution 2

In Android Studio 4.1 the export as ZIP option has been moved to File - > Manage IDE Settings - > Export to Zip file

enter image description here

Solution 3

  1. right click on app folder
  2. then send to
  3. then compressed via zip

Solution 4

  1. Go to File
  2. Choose option Export to Zip File

Note: This option is removed in Android Studio 4.1

Solution 5

You can first push the project to Github and then download the project as zip. Only the necessary code will be pushed to Github, hence making it easier for others to go through the code.

Steps to push to Github:
1. In the Project Window, select Android. Only the app folder and necessary code can be seen.
2. Click on VCS -> Import from Version Control -> Share Project on Github.
3. Enter project name and description.
4. Enter a commit message. You can select/deselect files to be pushed.

Note: You will have to setup Github first in Android Studio.

After this you will see a notification on top right of the IDE saying 'Project pushed to Github' and a hyperlink to the Github repository.

You can then download the repository as zip. This might seem to be a long process but it would help in the long run as your code can be easily managed using VCS within Android Studio itself.

Share:
59,662
user3608814
Author by

user3608814

Updated on November 18, 2021

Comments

  • user3608814
    user3608814 over 2 years

    How do I export a project in ZIP format in Android Studio?

    I have always worked with Eclipse that has this feature.

  • statosdotcom
    statosdotcom almost 4 years
    Juts an alert for new users: Android Studio 4.2, still in development, doesn't have this option. Hope they re-implement it on stable version. Cheers.
  • The incredible Jan
    The incredible Jan over 3 years
    I already have a version control and don't want to use the shelf feature all the time. I want to export without generated junk. The zip export worked really good but I can't find it anymore after update to AS 4.1... :/
  • The incredible Jan
    The incredible Jan over 3 years
    Sadly then you have all the generated junk in your archive...
  • The incredible Jan
    The incredible Jan over 3 years
    It really sucks when such a useful feature is removed without warning. :(
  • rule
    rule over 3 years
    @statosdotcom Option exists, it's just under File -> Manage IDE Settings -> Export to Zip file
  • Teng-pao Yu
    Teng-pao Yu over 3 years
    Thanks for the answer! However, we seemed to already have the answer in: stackoverflow.com/a/64653406/3591480 If you feel like the answer is incomplete, you can improve the answer by suggesting an edit. Generally we will like to avoid duplicate answers as duplicate answers decreases readability.
  • statosdotcom
    statosdotcom over 3 years
    @rule mine didn't have. Maybe it was my beta version or my S.O. diff of yours.
  • Sammi Lin
    Sammi Lin over 3 years
    Apologies, I missed that comment when I was looking through the post
  • Peppe L-G
    Peppe L-G over 3 years
    Found it, but why put in under Manage IDE Settings?! :S
  • Sai
    Sai about 3 years
    Now it's been stable, you can find in Android Studio 4.2.1. File -> Export -> Export to zip file.