Build Android Studio app via command line

后端 未结 12 1782
梦谈多话
梦谈多话 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:32

    Only for MAC Users

    Extending Vji's answer.

    Step by step procedure:

    1. Open Terminal
    2. Change your directory to your Project(cd PathOfYourProject)
    3. Copy and paste this command and hit enter:

      chmod +x gradlew
      
    4. As Vji suggested:

      ./gradlew task-name
      

      DON'T FORGOT TO ADD .(DOT) BEFORE /gradlew

提交回复
热议问题