How to retrieve path to ADB in build.gradle

前端 未结 6 1325
無奈伤痛
無奈伤痛 2021-02-05 13:01

I trying to start application via gradle task.


task runDebug(dependsOn: [\'installDebug\', \'run\']) {
}

task run(type: Exec) {
comm         


        
6条回答
  •  臣服心动
    2021-02-05 13:30

    My default solution for this issue is to add adb to your path variable so you can use the adb command from every path.
    You can set it e.g. from the console like this:

    set path=%path%;x:\path\to\adb
    

    Alternative you can set it via the UI. See also this explanation on java.com.

提交回复
热议问题