When debugging with Ndk-gdb, execute $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. Use force to close the Ant debug session.
I did not report the error $NDK/ndk-gdb--verbose--force command.
Android NDK Development, with Cygwin debug local code times wrong "another debug session Running,use--force to kill it" causes and solutions