How to export an Android Studio project as a zip file?
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
Solution 3
- right click on app folder
- then send to
- then compressed via zip
Solution 4
- Go to File
- 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.
user3608814
Updated on November 18, 2021Comments
-
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 almost 4 yearsJuts 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 over 3 yearsI 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 over 3 yearsSadly then you have all the generated junk in your archive...
-
The incredible Jan over 3 yearsIt really sucks when such a useful feature is removed without warning. :(
-
rule over 3 years@statosdotcom Option exists, it's just under File -> Manage IDE Settings -> Export to Zip file
-
Teng-pao Yu over 3 yearsThanks 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 over 3 years@rule mine didn't have. Maybe it was my beta version or my S.O. diff of yours.
-
Sammi Lin over 3 yearsApologies, I missed that comment when I was looking through the post
-
Peppe L-G over 3 yearsFound it, but why put in under Manage IDE Settings?! :S
-
Sai about 3 yearsNow it's been stable, you can find in Android Studio 4.2.1. File -> Export -> Export to zip file.