I am using gradle script for building the app in Eclipse . By using gradle I can run the application to the device, by using the script in gradle.
task run(type: Exec, dependsOn: 'installDebug') {
def adb = "$System.env.ANDROID_HOME/platform-tools/adb"
commandLine "$adb", 'shell', 'am', 'start', '-n', 'com.example.multidexproject/.MainActivity'
}
and it is working fine .Now I would like to write a task for debugging the app . So there is any command for this in adb ?
You can simply use adb logcat
to show the logs. Check this page for all the options.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With