When debugging with Ndk-gdb. Run $ndk/ndk-gdb--verbose Error "Another debug session Running,use--force to kill it".
I checked the NDK official documentation, saying this:
--force:by Default, Ndk-gdb aborts if it finds that another native debugging session was running on the same device. U Sing--force would kill the session, and replace it with a new one. Note that the debugged program is *not* killed and would be stopped again.
--start:by default, Ndk-gdb would try to attach to a existing running instance of your application on the target device. You can use--start to explicitly launch your application before the debugging session.
By default, NDK debugging opens the session for Ant Debug, but Ndk-gdb also initiates a session, so there is a conflict. You can use force to close the Ant debug session.
I ran the $ndk/ndk-gdb--verbose--force command and didn't report the error.
Android NDK Development, with Cygwin debugging local code times wrong "another debug session Running,use--force to kill it" causes and workarounds