HarryQ
HarryQ

Reputation: 1423

Android NDK cant start debugger due to port connection failure

When trying out the example code in google code lab. I create a very simple hello world app with NDK components. Compiling and running on the phone were successful.

However, I couldn't start debugging the native code. When I press the Debug :app icon, the app shows Waiting For Debugger screen, while Android studio got stuck at Starting LLDB Server... .After a few minutes, the console output Failed to connect port. Studio Screenshot

Neither a real phone nor an emulator can successfully start the debug process.

Upvotes: 0

Views: 196

Answers (1)

HarryQ
HarryQ

Reputation: 1423

Updating to Platform-tools version 29.0.4 solves the problem. Apparently, this problem appears in platform-tools 29.0.3

Upvotes: 2

Related Questions