1 建立遠(yuǎn)程調(diào)試任務(wù)

image.png

image.png

image.png
2 在項(xiàng)目中的terminal命令行中
gradle assembleDebug -Dorg.gradle.daemon=false -Dorg.gradle.debug=true
assembleDebug 可以為其他的構(gòu)建命令,但參數(shù)-Dorg.gradle.daemon=false -Dorg.gradle.debug=true要有。

image.png
創(chuàng)建debug任務(wù)成功后

image.png
3.開(kāi)始調(diào)試
打斷點(diǎn)

image.png
開(kāi)始調(diào)試

image.png

image.png