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

后端 未结 10 2222
抹茶落季
抹茶落季 2020-12-10 11:28

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

I have always worked with Eclipse that has this feature.

相关标签:
10条回答
  • 2020-12-10 11:59

    It's easy, if you use git:

    git archive -o latest.zip HEAD
    
    0 讨论(0)
  • 2020-12-10 12:06

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

    0 讨论(0)
  • 2020-12-10 12:06

    Windows:

    First Open Command Window and set location of your android studio project folder like:

    D:\MyApplication>
    

    then type below command in it:

    gradlew clean
    

    then wait for complete clean process. after complete it now zip your project like below:

    • right click on your project folder
    • then select send to option
    • now select compressed via zip
    0 讨论(0)
  • 2020-12-10 12:07

    Following worked for me, Android Studio 2.0, assuming there are no libs.

    A. From the source project
    1. Copy /app/build.gradle
    2. Copy /app/src/* including subdirectories (only contains manifest, java and resources)

    B. Create new project with the same package name, minSDK etc.
    1. Replace /app/build.gradle
    2. Replace /app/src/* including subdirectories

    C. Synchronize

    D. Clean Project

    0 讨论(0)
提交回复
热议问题