Attach debugger to android process from gradle script


#1

Is there method to attach Intellij(not Android Studio) to android process from gradle script? I launch app like this:

task startDebug(type:Exec){
    commandLine './adb', 'shell', 'am', 'start', '-D', '-n', 'com.example.AndroidGradle/.LaunchActivity'
}

then emulator/device waits for IDE connection.


(Luke Daley) #2

Not as far as I’m aware. You might have more luck asking on the adt-dev group: https://groups.google.com/forum/#!forum/adt-dev