Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
Qt Creator 4.6.0 , Qt Creator 4.7.0, Qt Creator 4.8.0-beta1
-
None
-
Windows 10
Android SDK v28
Android NDK 15c
Description
Trying to start debugger on Windows for an Android project using a QtCreator (which is already using the "new" debug mechanism => QtCreator 4.6 onwards) i receive the message:
Can not find/copy C++ debug server.
Investigating this issue further lead me to the method AndroidRunnerWorker::uploadFile() (in src\plugins\android\androidrunnerworker.cpp).
It specifically fails on the execution of the command
adb shell run-as my.package.name sh -c 'cat > gdbserver'
Debugging the call further showed the result message:
adb.exe did not respond within the timeout limit (30 s).
This happened to me on different machines and different projects and QtCreator versions (4.6+).
When running the mentioned command manually it expects the file contents of gdserver binary. Since the content comes from a QByteArray, maybe just an EOF is missing?