Build Android Studio app via command line

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

    enter code hereCreate script file with below gradle and adb command, Execute script file

    ./gradlew clean
    

    ./gradlew assembleDebug ./gradlew installDebug

    adb shell am start -n applicationID/full path of launcher activity

提交回复
热议问题