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

后端 未结 10 2237
抹茶落季
抹茶落季 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 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

提交回复
热议问题