I am in the process of debugging an android application using android studio. I commented out certain lines and attached it to the ADB. But when debugging it still executes the commented lines! this is completely strange.
How do I fix this?
Have tried closing and reopening Android Studio, didn't help.
Sometimes this happens to me when Android Studio
is not running new code. I usually cannot pin it down on one specific thing (ADB, Android Studio, Build process, etc) so I go for the scorched earth approach.
Uninstall the app via ADB
:
adb uninstall <package_name>
Restarting Android Studio may help, but also running a Build > Clean Project
If you have changed any Gradle settings or files you may have to sync those up, so try Syncing Project with your Gradle files
.
If this all really doesn't work, a restart of your emulator/physical testing device and computer may be in order.
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