How to retrieve path to ADB in build.gradle

前端 未结 6 1332
無奈伤痛
無奈伤痛 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:28

    def androidPlugin = project.plugins.findPlugin("android")
    def adb = androidPlugin.sdkHandler.sdkInfo?.adb
    

提交回复
热议问题