

The Gradle daemon will await a connection from the debugger.Įnsure you have a breakpoint set within the Gradle script you’re attempting to debug. Run the Gradle command from Android Studios terminal (or your preferred terminal).

The following argument must be included with the Gradle command =true -no-daemon Run the Gradle task or command which will execute the script or code you’re looking to debug. The default provided values should be adequate. Provide a name, such as “Gradle Remote Debugging”. This post explains how to debug Gradle scripts using Android Studio, enabling the use of live breakpoints, stepping and evaluations.Ĭreate a new Run/Debug Configuration from the Android Studio menu ( Run -> Edit Configurations).įrom the Run/Debug Configuration dialog, press the + button to create a new run/debug configuration.
