Build Android Studio app via command line

后端 未结 12 1761
梦谈多话
梦谈多话 2020-11-27 10:36

I want to build an Android Studio app (the Gradle build system), but I want to do this via the command line.

12条回答
  •  爱一瞬间的悲伤
    2020-11-27 11:30

    Official Documentation is here:

    To build a debug APK, open a command line and navigate to the root of your project directory. To initiate a debug build, invoke the assembleDebug task:

    gradlew assembleDebug
    

    This creates an APK named module_name-debug.apk in project_name/module_name/build/outputs/apk/.

提交回复
热议问题